summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-22 19:53:22 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-22 19:53:22 +0000
commit5501c96d2c17f63e03b2e36d01d2b9cf64722f56 (patch)
tree6bbfc6f41fee58d6c99a23afadcd762579580a24 /src/net
parent87a4e3eea7865c37d3a73c60015988673b6178b5 (diff)
downloadmana-client-5501c96d2c17f63e03b2e36d01d2b9cf64722f56.tar.gz
mana-client-5501c96d2c17f63e03b2e36d01d2b9cf64722f56.tar.bz2
mana-client-5501c96d2c17f63e03b2e36d01d2b9cf64722f56.tar.xz
mana-client-5501c96d2c17f63e03b2e36d01d2b9cf64722f56.zip
Now you can attack with right mouse button, useful when using bow, need improvements though
Diffstat (limited to 'src/net')
-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);
}