From ad258531caaf6009695b0d61a06120a6844b051d Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Mon, 1 Aug 2005 22:45:11 +0000 Subject: Small cleanups in the drawing code, the autoTarget checks and some headers. --- src/game.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 6afe733d..725fee5b 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -963,9 +963,9 @@ void do_parse() case SMSG_REMOVE_BEING: // A being should be removed or has died being = findNode(RFIFOL(2)); - if (being != NULL) + if (being != NULL) { - if (RFIFOB(6) == 1) + if (RFIFOB(6) == 1) { // Death switch (being->getType()) { @@ -977,15 +977,16 @@ void do_parse() default: being->action = Being::DEAD; - break; + break; } //remove_node(RFIFOL(2)); } else { remove_node(RFIFOL(2)); - if (being == autoTarget) { - autoTarget = NULL; - } + } + + if (being == autoTarget) { + autoTarget = NULL; } } break; -- cgit v1.2.3-70-g09d2