]> code.citadel.org Git - citadel.git/commitdiff
Minor update to the zap code. Now after zapping a room, if you double
authorSteve Williams <patriot@uncensored.citadel.org>
Thu, 11 Nov 1999 04:24:05 +0000 (04:24 +0000)
committerSteve Williams <patriot@uncensored.citadel.org>
Thu, 11 Nov 1999 04:24:05 +0000 (04:24 +0000)
click on the zapped rooms folder it'll update the rooms within it.  In
other words if you zap a room, then click on it within the zapped rooms
folder it'll unzap, but the room tree won't update unless you double click
the zapped rooms folder.

daphne/Makefile
daphne/roomtree.cpp

index 17ef23dedce30a4a3cc9608b0565794aefa69e96..38468ce249cb7b1354a2f82f89df794c2a0923c8 100644 (file)
@@ -21,9 +21,8 @@ daphne: main.o citclient.o userlogin.o testwindow.o who.o \
 
 install: 
        
-       cp daphne /usr/local/bin/./
-       mkdir /usr/local/share/bitmaps  
-       cp bitmaps/*.xpm /usr/local/share/bitmaps/./
-       cp bitmaps/*.bmp /usr/local/share/bitmaps/./
+       install -m 755 daphne /usr/local/bin/./
+       install bitmaps/*.xpm /usr/local/share/bitmaps
+       install bitmaps/*.bmp /usr/local/share/bitmaps
 clean:
        rm -f *.o core daphne
index e0ff08f0c38b113f16db8195088c6a912dbf9937..b0625c2542256814582bb183137c6af29ef4d961 100644 (file)
@@ -125,8 +125,6 @@ void RoomTree::LoadRoomList(void) {
                );
 
                
-
-
        sendcmd = "LFLR";
        // Bail out silently if we can't retrieve the floor list
        if (citsock->serv_trans(sendcmd, recvcmd, transbuf) != 1) return;
@@ -197,15 +195,18 @@ void RoomTree::LoadRoomList(void) {
        }
 
 
+       // Create a bogus floor for zapped rooms
+
        zapfloor = AppendItem(
                GetRootItem(),
                "Zapped Rooms",
                1,
                -1,
-               new RoomItem("Zapped Rooms", TRUE, RI_ZAPPED)
+               new RoomItem("Zapped Rooms", FALSE, RI_ZAPPED)
                );
 
-       sendcmd = "LZRM";
+
+       sendcmd = "LZRM"; // List Zapped RooMs
 
        if (citsock->serv_trans(sendcmd, recvcmd, transbuf) != 1) return;
        while (pos = transbuf.Find('\n', FALSE), (pos >= 0)) {
@@ -288,9 +289,8 @@ void RoomTree::OnDoubleClick(wxTreeEvent& evt) {
                break;
 
        case RI_ZAPPED:
-               new RoomView(citsock, citMyMDI, r->RoomName);
-               DeleteAllItems();
-               LoadRoomList();
+               RoomList->DeleteAllItems();
+               RoomList->LoadRoomList(); 
                break;