aboutsummaryrefslogtreecommitdiff
path: root/src/game/PointMovementGenerator.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-01 21:04:02 -0500
committermegamage <none@none>2009-05-01 21:04:02 -0500
commita102098eb2f76ab1e49497c5ebbb8e6359c8b964 (patch)
tree87706926d1189d683e436e559d1c35dc3b02d2ae /src/game/PointMovementGenerator.cpp
parentc9cd3b07f9e69030a86bcd9f06055f4247732d1d (diff)
*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
Diffstat (limited to 'src/game/PointMovementGenerator.cpp')
-rw-r--r--src/game/PointMovementGenerator.cpp3
1 files changed, 2 insertions, 1 deletions
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<T>::Update(T &unit, const uint32 &diff)
Traveller<T> 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;
}