diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-07-28 15:14:22 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-07-28 15:14:22 +0000 |
commit | d51efb148feef39b5ae38924371e636118f6b361 (patch) | |
tree | b79b1523ba9b2816d71eeb2f7c099f07f0e0b4fb /src/being.cpp | |
parent | 51b75feaefd132ee0b7992a10dbe79bfa92e6d91 (diff) | |
download | mana-d51efb148feef39b5ae38924371e636118f6b361.tar.gz mana-d51efb148feef39b5ae38924371e636118f6b361.tar.bz2 mana-d51efb148feef39b5ae38924371e636118f6b361.tar.xz mana-d51efb148feef39b5ae38924371e636118f6b361.zip |
Added an action enumeration to th Being class and removed the old #define's.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp index 315dbd7e..4d4482b6 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -103,7 +103,7 @@ Being *findNode(unsigned short x, unsigned short y) for (i = beings.begin(); i != beings.end(); i++) { Being *being = (*i); // Return being if found and it is not a dead monster - if (being->x == x && being->y == y && being->action != MONSTER_DEAD) { + if (being->x == x && being->y == y && being->action != Being::MONSTER_DEAD) { return being; } } @@ -117,7 +117,7 @@ Being* findNode(unsigned short x, unsigned short y, Being::Type type) Being *being = (*i); // Check if is a NPC (only low job ids) if (being->x == x && being->y == y && - being->getType() == type && being->action != MONSTER_DEAD) + being->getType() == type && being->action != Being::MONSTER_DEAD) { return being; } |