Core/Transports: Fix transport model rotation

This commit is contained in:
Shauren
2026-02-08 14:54:27 +01:00
parent f18020ebad
commit baed611c26
2 changed files with 2 additions and 1 deletions

View File

@@ -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;

View File

@@ -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);