From a102098eb2f76ab1e49497c5ebbb8e6359c8b964 Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 1 May 2009 21:04:02 -0500 Subject: *Send stop packet iff necessary. Hope this can fix the bug that cannot immediatly remove confuse movement and face wrong direction after charging. --HG-- branch : trunk --- src/game/PointMovementGenerator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game/PointMovementGenerator.cpp') diff --git a/src/game/PointMovementGenerator.cpp b/src/game/PointMovementGenerator.cpp index 6117dbf903d..5f7f7ca7c13 100644 --- a/src/game/PointMovementGenerator.cpp +++ b/src/game/PointMovementGenerator.cpp @@ -53,10 +53,11 @@ bool PointMovementGenerator::Update(T &unit, const uint32 &diff) Traveller traveller(unit); - i_destinationHolder.UpdateTraveller(traveller, diff, false); + i_destinationHolder.UpdateTraveller(traveller, diff); if(i_destinationHolder.HasArrived()) { + unit.clearUnitState(UNIT_STAT_MOVE); arrived = true; return false; } -- cgit v1.2.3