mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
Core/Transports: Fix transport model rotation
This commit is contained in:
@@ -198,7 +198,7 @@ class TC_GAME_API GameObject : public WorldObject, public GridObject<GameObject>
|
||||
static GameObject* CreateGameObject(uint32 entry, Map* map, Position const& pos, QuaternionData const& rotation, uint32 animProgress, GOState goState, uint32 artKit = 0);
|
||||
static GameObject* CreateGameObjectFromDB(ObjectGuid::LowType spawnId, Map* map, bool addToMap = true);
|
||||
|
||||
void Update(uint32 p_time) override;
|
||||
void Update(uint32 diff) override;
|
||||
GameObjectTemplate const* GetGOInfo() const { return m_goInfo; }
|
||||
GameObjectTemplateAddon const* GetTemplateAddon() const { return m_goTemplateAddon; }
|
||||
GameObjectOverride const* GetGameObjectOverride() const;
|
||||
|
||||
@@ -523,6 +523,7 @@ void Transport::UpdatePosition(float x, float y, float z, float o)
|
||||
|
||||
Relocate(x, y, z, o);
|
||||
m_stationaryPosition.SetOrientation(o);
|
||||
SetLocalRotationAngles(o, 0.0f, 0.0f);
|
||||
UpdateModelPosition();
|
||||
|
||||
UpdatePassengerPositions(_passengers);
|
||||
|
||||
Reference in New Issue
Block a user