fix(DB/Gameobject): Recalculate quaternion rotation values from orientation (#24617)

This commit is contained in:
blinkysc 2026-02-06 14:41:08 -06:00 committed by GitHub
parent 653136e311
commit 9b63cde7cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 105 additions and 41 deletions

View file

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