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 /src/game.cpp | |
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
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
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 |