*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
This commit is contained in:
1 parent
c9cd3b07f9
commit
a102098eb2
12 files changed
+54
-48
No files matched your search
@@ -146,7 +146,7 @@ WaypointMovementGenerator<Creature>::Update(Creature &unit, const uint32 &diff)
|
||||
Traveller<Creature> traveller(unit);
|
||||
|
||||
i_nextMoveTime.Update(diff);
|
||||
i_destinationHolder.UpdateTraveller(traveller, diff, false, true);
|
||||
i_destinationHolder.UpdateTraveller(traveller, diff, true);
|
||||
|
||||
if(i_nextMoveTime.Passed())
|
||||
{
|
||||
@@ -281,7 +281,7 @@ FlightPathMovementGenerator::Update(Player &player, const uint32 &diff)
|
||||
if( MovementInProgress() )
|
||||
{
|
||||
Traveller<Player> traveller(player);
|
||||
if( i_destinationHolder.UpdateTraveller(traveller, diff, false) )
|
||||
if( i_destinationHolder.UpdateTraveller(traveller, diff) )
|
||||
{
|
||||
i_destinationHolder.ResetUpdate(FLIGHT_TRAVEL_UPDATE);
|
||||
if( i_destinationHolder.HasArrived() )
|
||||
|
||||
Reference in new issue
Block a user