From a0a158b5b851db7e2c16819ec89e913d914a3aba Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 28 May 2017 16:34:44 +0200 Subject: Core/Scripts: Include cleanup --- src/server/scripts/Commands/cs_gobject.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_gobject.cpp b/src/server/scripts/Commands/cs_gobject.cpp index 859fad4eae0..4ece2a87e94 100644 --- a/src/server/scripts/Commands/cs_gobject.cpp +++ b/src/server/scripts/Commands/cs_gobject.cpp @@ -34,6 +34,7 @@ EndScriptData */ #include "Player.h" #include "PoolMgr.h" #include "RBAC.h" +#include class gobject_commandscript : public CommandScript { @@ -141,7 +142,7 @@ public: GameObject* object = new GameObject(); G3D::Quat rot = G3D::Matrix3::fromEulerAnglesZYX(player->GetOrientation(), 0.f, 0.f); - if (!object->Create(objectInfo->entry, map, 0, *player, rot, 255, GO_STATE_READY)) + if (!object->Create(objectInfo->entry, map, 0, *player, QuaternionData(rot.x, rot.y, rot.z, rot.w), 255, GO_STATE_READY)) { delete object; return false; @@ -206,7 +207,7 @@ public: return false; } - player->SummonGameObject(objectId, *player, rotation, spawntm); + player->SummonGameObject(objectId, *player, QuaternionData(rotation.x, rotation.y, rotation.z, rotation.w), spawntm); return true; } -- cgit v1.2.3