diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-22 20:48:35 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-22 20:48:35 +0000 |
commit | 50788ab3e58235878d77962247a082c8c81ca38a (patch) | |
tree | 2a7d3c8c3352ee0075fe508b416e0f6ea93041ea | |
parent | 5501c96d2c17f63e03b2e36d01d2b9cf64722f56 (diff) | |
download | mana-50788ab3e58235878d77962247a082c8c81ca38a.tar.gz mana-50788ab3e58235878d77962247a082c8c81ca38a.tar.bz2 mana-50788ab3e58235878d77962247a082c8c81ca38a.tar.xz mana-50788ab3e58235878d77962247a082c8c81ca38a.zip |
updating changelog and fixing right mouse button attack, it was out of sync
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/game.cpp | 16 |
2 files changed, 10 insertions, 7 deletions
@@ -1,4 +1,5 @@ 0.0.12 (? May 2005) +- Right mouse button to attack (enables also ranged attacks) - Added XML item database - Fixed crash when map server is down - New map (Shimris cave) diff --git a/src/game.cpp b/src/game.cpp index 10c2a63c..1afa5e79 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -357,13 +357,15 @@ void do_input() } } else if (target->isMonster()) { - player_node->action = ATTACK; - action(0, target->id); - player_node->walk_time = tick_time; - if (player_node->weapon == 2) - sound.playSfx("sfx/bow_shoot_1.ogg"); - else - sound.playSfx("sfx/fist-swish.ogg"); + if (player_node->action == STAND) { + player_node->action = ATTACK; + action(0, target->id); + player_node->walk_time = tick_time; + if (player_node->weapon == 2) + sound.playSfx("sfx/bow_shoot_1.ogg"); + else + sound.playSfx("sfx/fist-swish.ogg"); + } } else if (target->isPlayer()) { // Begin a trade |