Make the undo for unjoin work
authorAndy Allan <gravitystorm@gmail.com>
Thu, 4 Nov 2010 17:39:05 +0000 (17:39 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Thu, 4 Nov 2010 17:39:05 +0000 (17:39 +0000)
net/systemeD/halcyon/connection/actions/UnjoinNodeAction.as

index 1f28137..d9dac6f 100644 (file)
@@ -42,9 +42,13 @@ package net.systemeD.halcyon.connection.actions {
         }
             
         public override function undoAction():uint {
-            trace("fail");
+            node.suspend();
+            selectedWay.suspend();
+            super.undoAction();
+            selectedWay.resume();
+            node.resume();
             
-            return FAIL;
+            return SUCCESS;
         }
     }
 }