[12221] Implement interface for Vehicles

Signed-off-by: Schmoozerd <schmoozerd@cmangos>
This commit is contained in:
kid10 2012-09-14 01:31:39 +02:00 committed by Antz
parent 164c2e137b
commit 1aaf756c7e
7 changed files with 280 additions and 18 deletions

View file

@ -103,9 +103,9 @@ void TransportBase::UpdateGlobalPositionOf(WorldObject* passenger, float lx, flo
else
m_owner->GetMap()->CreatureRelocation((Creature*)passenger, gx, gy, gz, go);
//// If passenger is vehicle
//if (((Unit*)passenger)->IsVehicle())
// ((Unit*)passenger)->GetVehicleInfo()->UpdateGlobalPositions();
// If passenger is vehicle
if (((Unit*)passenger)->IsVehicle())
((Unit*)passenger)->GetVehicleInfo()->UpdateGlobalPositions();
}
// ToDo: Add gameobject relocation
// ToDo: Add passenger relocation for MO transports