summaryrefslogtreecommitdiff
path: root/src/beingmanager.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2006-12-01 16:54:19 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2006-12-01 16:54:19 +0000
commitab431cdfab6e1842ff357c7f380cc74142601912 (patch)
treec10b04d93a14cfd1cfee98db562c5b6b00d9a2b9 /src/beingmanager.cpp
parent30aa32025d3406920330390b97001ade27e4343a (diff)
downloadmana-ab431cdfab6e1842ff357c7f380cc74142601912.tar.gz
mana-ab431cdfab6e1842ff357c7f380cc74142601912.tar.bz2
mana-ab431cdfab6e1842ff357c7f380cc74142601912.tar.xz
mana-ab431cdfab6e1842ff357c7f380cc74142601912.zip
Monster sound effect patch
Diffstat (limited to 'src/beingmanager.cpp')
-rw-r--r--src/beingmanager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/beingmanager.cpp b/src/beingmanager.cpp
index 027e08d3..eea8c419 100644
--- a/src/beingmanager.cpp
+++ b/src/beingmanager.cpp
@@ -41,7 +41,7 @@ class FindBeingFunctor
Uint16 other_y = y + ((being->getType() == Being::NPC) ? 1 : 0);
return (being->mX == x &&
(being->mY == y || being->mY == other_y) &&
- being->mAction != Being::MONSTER_DEAD &&
+ being->mAction != Being::DEAD &&
(type == Being::UNKNOWN || being->getType() == type));
}
@@ -133,7 +133,7 @@ void BeingManager::logic()
being->logic();
- if (being->mAction == Being::MONSTER_DEAD && being->mFrame >= 20)
+ if (being->mAction == Being::DEAD && being->mFrame >= 20)
{
delete being;
i = mBeings.erase(i);
@@ -174,7 +174,6 @@ Being* BeingManager::findNearestLivingBeing(Uint16 x, Uint16 y, int maxdist,
if ((being->getType() == type || type == Being::UNKNOWN)
&& (d < dist || closestBeing == NULL) // it is closer
&& being->mAction != Being::DEAD // no dead beings
- && being->mAction != Being::MONSTER_DEAD
)
{
dist = d;