diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-11 16:15:10 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-11 16:15:10 +0000 |
commit | caeba363798727f75972ce6b8625fd9754bee903 (patch) | |
tree | 619fbff5801278d5b4f98413e354ea73a87f34bc /src/game.cpp | |
parent | 24bf86763cdba47e9a88124a3394882667169185 (diff) | |
download | mana-caeba363798727f75972ce6b8625fd9754bee903.tar.gz mana-caeba363798727f75972ce6b8625fd9754bee903.tar.bz2 mana-caeba363798727f75972ce6b8625fd9754bee903.tar.xz mana-caeba363798727f75972ce6b8625fd9754bee903.zip |
Implemented parent relationship for Window class and converted more ok dialogs
to the OkDialog class.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game.cpp b/src/game.cpp index 71340f16..4c2e055f 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -421,8 +421,8 @@ void do_parse() { break; // Success to walk request case 0x0087: - if(walk_status==1) { - if(RFIFOL(2)>server_tick) { + if (walk_status == 1) { + if (RFIFOL(2) > server_tick) { walk_status = 2; server_tick = RFIFOL(2); } @@ -430,7 +430,7 @@ void do_parse() { break; // Add new being / stop monster case 0x0078: - if(find_node(RFIFOL(2))==NULL) { + if (find_node(RFIFOL(2)) == NULL) { node = new NODE(); node->id = RFIFOL(2); node->speed = RFIFOW(6); @@ -445,7 +445,7 @@ void do_parse() { add_node(node); } else { - if(node) { + if (node) { empty_path(node); memcpy(node->coordinates, RFIFOP(46), 3); node->frame = 0; @@ -457,7 +457,7 @@ void do_parse() { // Remove a being case 0x0080: node = find_node(RFIFOL(2)); - if(node!=NULL) { + if (node != NULL) { if(RFIFOB(6)==1) { // Death if(node->job>110) { node->action = MONSTER_DEAD; @@ -473,7 +473,7 @@ void do_parse() { case 0x01d8: case 0x01d9: node = find_node(RFIFOL(2)); - if(node==NULL) { + if (node == NULL) { node = new NODE(); node->id = RFIFOL(2); node->job = RFIFOW(14); |