diff options
author | Dennis Friis <peavey@placid.dk> | 2008-04-16 11:59:36 +0000 |
---|---|---|
committer | Dennis Friis <peavey@placid.dk> | 2008-04-16 11:59:36 +0000 |
commit | 1cc27f15b1f8d74bbc31262f2e7417adf01a63a8 (patch) | |
tree | 916f6a10040d347ea222001a1a66e8c22bf2113a /src | |
parent | 4e0253cfd7c6a7684341f55f4a1f3dd88eeb5609 (diff) | |
download | mana-1cc27f15b1f8d74bbc31262f2e7417adf01a63a8.tar.gz mana-1cc27f15b1f8d74bbc31262f2e7417adf01a63a8.tar.bz2 mana-1cc27f15b1f8d74bbc31262f2e7417adf01a63a8.tar.xz mana-1cc27f15b1f8d74bbc31262f2e7417adf01a63a8.zip |
Cancel walking to a clicked monster if the target is lost while getting to it (killed or otherwise removed).
Diffstat (limited to 'src')
-rw-r--r-- | src/localplayer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 2aae199e..20f6b6a7 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -116,6 +116,11 @@ void LocalPlayer::nextStep() mPath.clear(); return; } + else if (mGoingToTarget && !mTarget) + { + mGoingToTarget = false; + mPath.clear(); + } Player::nextStep(); } |