From 50788ab3e58235878d77962247a082c8c81ca38a Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Fri, 22 Apr 2005 20:48:35 +0000 Subject: updating changelog and fixing right mouse button attack, it was out of sync --- src/game.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/game.cpp') 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 -- cgit v1.2.3-70-g09d2