diff options
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index dccd3914..129626f0 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -138,12 +138,12 @@ void LocalPlayer::logic() { attack(mTarget, true); } - } - for (int i = Being::TC_SMALL; i < Being::NUM_TC; i++) - { - player_node->mTargetCursorInRange[i]->update(10); - player_node->mTargetCursorOutRange[i]->update(10); + for (int i = Being::TC_SMALL; i < Being::NUM_TC; i++) + { + player_node->mTargetCursorInRange[i]->update(10); + player_node->mTargetCursorOutRange[i]->update(10); + } } Being::logic(); @@ -480,6 +480,7 @@ void LocalPlayer::attack(Being *target, bool keep) mLastAttackTime = 0; mWalkTime = tick_time; + mTargetTime = tick_time; setAction(ATTACK); |