From 1cc27f15b1f8d74bbc31262f2e7417adf01a63a8 Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Wed, 16 Apr 2008 11:59:36 +0000 Subject: Cancel walking to a clicked monster if the target is lost while getting to it (killed or otherwise removed). --- src/localplayer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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(); } -- cgit v1.2.3-70-g09d2