From 59d351895a3a15b517c4493fab89a62137b12157 Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Sun, 10 May 2009 13:45:00 +1200 Subject: Modify keyboard handling The attack key now no longer changes the target if there is a target already set, and changing the target to the same being now no longer cancels the target since a dedicated Cancel Target Key now exists. --- src/localplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/localplayer.cpp') diff --git a/src/localplayer.cpp b/src/localplayer.cpp index afd7f0eb..c68be7a8 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -526,7 +526,7 @@ void LocalPlayer::setTarget(Being *target) mLastTarget = tick_time; if (target == mTarget) - target = NULL; + return; if (target || mAction == ATTACK) { -- cgit v1.2.3-70-g09d2