mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 13:37:13 +00:00
[12221] Implement interface for Vehicles
Signed-off-by: Schmoozerd <schmoozerd@cmangos>
This commit is contained in:
parent
164c2e137b
commit
1aaf756c7e
7 changed files with 280 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue