summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-09-28 09:19:56 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-09-28 09:19:56 +0000
commitf616a0e4736cc6f7b9b593b5579328469c3cc159 (patch)
tree99b578737778ae3b19f00dbe26964a10fb02724d /src/being.cpp
parent4e3e8d31962780b5a7fd6e7ba30d59ae34c75700 (diff)
downloadmana-f616a0e4736cc6f7b9b593b5579328469c3cc159.tar.gz
mana-f616a0e4736cc6f7b9b593b5579328469c3cc159.tar.bz2
mana-f616a0e4736cc6f7b9b593b5579328469c3cc159.tar.xz
mana-f616a0e4736cc6f7b9b593b5579328469c3cc159.zip
*** empty log message ***
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being.cpp b/src/being.cpp
index ca527882..c2e93ca1 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -156,11 +156,11 @@ unsigned int find_npc(unsigned short x, unsigned short y) {
unsigned int find_monster(unsigned short x, unsigned short y) {
NODE *node = head;
while(node) {
- //if((node->job>=46)&&(node->job<=125)) { // Check if is a NPC (only low job ids)
- if((get_x(node->coordinates)==x)&&(get_y(node->coordinates)==y))
+ if(node->job>200) { // Check if is a MONSTER
+ if(get_x(node->coordinates)==x && get_y(node->coordinates)==y)
return node->id;
- else node = node->next;
- //} else node = node->next;
+ }
+ node = node->next;
}
return 0;
}