From caeba363798727f75972ce6b8625fd9754bee903 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 11 Jan 2005 16:15:10 +0000 Subject: Implemented parent relationship for Window class and converted more ok dialogs to the OkDialog class. --- src/game.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/game.cpp') 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); -- cgit v1.2.3-70-g09d2