summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-05-22 13:02:47 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-05-22 13:02:47 +0000
commit0c6830040481247a96ccc8fe15f9b1022506c0ae (patch)
tree1d19cac108370e3dfdb421ad3f497d02d5ab3e4f /src/engine.cpp
parentc669ed4986b0a01abc78f6d793993d9081c6b49e (diff)
downloadmana-client-0c6830040481247a96ccc8fe15f9b1022506c0ae.tar.gz
mana-client-0c6830040481247a96ccc8fe15f9b1022506c0ae.tar.bz2
mana-client-0c6830040481247a96ccc8fe15f9b1022506c0ae.tar.xz
mana-client-0c6830040481247a96ccc8fe15f9b1022506c0ae.zip
An attemp on auto attack, not bug free for sure
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 2073c0d3..2049d53f 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -408,6 +408,8 @@ void Engine::draw()
if (being->action == MONSTER_DEAD) {
monsterset[being->job - 1002]->spriteset[dir + 4 * MONSTER_DEAD]->draw(screen,
being->text_x + 30, being->text_y + 40);
+ if (autoTarget == being->id)
+ autoTarget = 0;
}
else {
monsterset[being->job-1002]->spriteset[dir + 4 * mf]->draw(