summaryrefslogtreecommitdiff
path: root/src/net/protocol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/protocol.cpp')
-rw-r--r--src/net/protocol.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/protocol.cpp b/src/net/protocol.cpp
index d2f1bd77..d2761457 100644
--- a/src/net/protocol.cpp
+++ b/src/net/protocol.cpp
@@ -228,19 +228,19 @@ void attack(unsigned short x, unsigned short y, unsigned char direction)
int monster_id = 0;
if (direction == SOUTH) {
- monster_id = find_monster(x, y + 1);
+ monster_id = findMonster(x, y + 1);
if (monster_id != 0)
action(0, monster_id);
} else if(direction == WEST) {
- monster_id = find_monster(x - 1, y);
+ monster_id = findMonster(x - 1, y);
if (monster_id != 0)
action(0, monster_id);
} else if(direction == NORTH) {
- monster_id = find_monster(x, y - 1);
+ monster_id = findMonster(x, y - 1);
if (monster_id != 0)
action(0, monster_id);
} else if(direction==EAST) {
- monster_id = find_monster(x + 1, y);
+ monster_id = findMonster(x + 1, y);
if (monster_id != 0)
action(0, monster_id);
}