summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-01 22:45:11 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-01 22:45:11 +0000
commitad258531caaf6009695b0d61a06120a6844b051d (patch)
tree8103fa02a15b1773f98b028bdd6b08791370335f /src/game.cpp
parentf14277f3df1c0391bea4c43e76e2bd0bc811b25b (diff)
downloadmana-client-ad258531caaf6009695b0d61a06120a6844b051d.tar.gz
mana-client-ad258531caaf6009695b0d61a06120a6844b051d.tar.bz2
mana-client-ad258531caaf6009695b0d61a06120a6844b051d.tar.xz
mana-client-ad258531caaf6009695b0d61a06120a6844b051d.zip
Small cleanups in the drawing code, the autoTarget checks and some headers.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp13
1 files changed, 7 insertions, 6 deletions
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;