[8076] Fixed well known walk-after-taxi bug.

Also thanks to jolan, yad02, nos4r2zod for deep reseach problem.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
thenecromancer 2009-06-25 06:31:28 +04:00 committed by tomrus88
parent 4baf32d05f
commit 9bc57c8512
3 changed files with 8 additions and 10 deletions

View file

@ -38,6 +38,7 @@ alter table creature_movement add `wpguid` int(11) default '0';
#include "DestinationHolderImp.h"
#include "CreatureAI.h"
#include "WaypointManager.h"
#include "WorldPacket.h"
#include <cassert>
@ -261,7 +262,9 @@ void FlightPathMovementGenerator::Finalize(Player & player)
if(player.pvpInfo.inHostileArea)
player.CastSpell(&player, 2479, true);
player.SetUnitMovementFlags(MONSTER_MOVE_WALK);
// update z position to ground and orientation for landing point
// this prevent cheating with landing point at lags
// when client side flight end early in comparison server side
player.StopMoving();
}
}