mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-09 18:50:33 +00:00
fix(DB/Gameobject): Recalculate quaternion rotation values from orientation (#24617)
This commit is contained in:
@@ -332,7 +332,7 @@ public:
|
||||
|
||||
Map* map = object->GetMap();
|
||||
object->Relocate(object->GetPositionX(), object->GetPositionY(), object->GetPositionZ(), *oz);
|
||||
object->SetLocalRotationAngles(*oz, oy.value_or(0.0f), ox.value_or(0.0f));
|
||||
object->SetWorldRotationAngles(*oz, oy.value_or(0.0f), ox.value_or(0.0f));
|
||||
object->SaveToDB();
|
||||
|
||||
// Generate a completely new spawn with new guid
|
||||
|
||||
Reference in New Issue
Block a user