diff --git a/apps/openmw-mp/Script/Functions/Positions.cpp b/apps/openmw-mp/Script/Functions/Positions.cpp index 753d48753..359be4898 100644 --- a/apps/openmw-mp/Script/Functions/Positions.cpp +++ b/apps/openmw-mp/Script/Functions/Positions.cpp @@ -3,7 +3,6 @@ #include #include #include -#include #include using namespace std; @@ -68,14 +67,6 @@ double PositionFunctions::GetAngleX(unsigned short pid) noexcept return player->position.rot[0]; } -double PositionFunctions::GetAngleY(unsigned short pid) noexcept -{ - Player *player; - GET_PLAYER(pid, player, 0.0f); - - return player->position.rot[1]; -} - double PositionFunctions::GetAngleZ(unsigned short pid) noexcept { Player *player; @@ -94,13 +85,12 @@ void PositionFunctions::SetPos(unsigned short pid, double x, double y, double z) player->position.pos[2] = z; } -void PositionFunctions::SetAngle(unsigned short pid, double x, double y, double z) noexcept +void PositionFunctions::SetAngle(unsigned short pid, double x, double z) noexcept { Player *player; GET_PLAYER(pid, player, ); player->position.rot[0] = x; - player->position.rot[1] = y; player->position.rot[2] = z; } diff --git a/apps/openmw-mp/Script/Functions/Positions.hpp b/apps/openmw-mp/Script/Functions/Positions.hpp index 06a322534..519fb3df1 100644 --- a/apps/openmw-mp/Script/Functions/Positions.hpp +++ b/apps/openmw-mp/Script/Functions/Positions.hpp @@ -11,7 +11,6 @@ \ {"GetAngle", PositionFunctions::GetAngle},\ {"GetAngleX", PositionFunctions::GetAngleX},\ - {"GetAngleY", PositionFunctions::GetAngleY},\ {"GetAngleZ", PositionFunctions::GetAngleZ},\ \ {"SetPos", PositionFunctions::SetPos},\ @@ -30,11 +29,10 @@ public: static void GetAngle(unsigned short pid, float *x, float *y, float *z) noexcept; static double GetAngleX(unsigned short pid) noexcept; - static double GetAngleY(unsigned short pid) noexcept; static double GetAngleZ(unsigned short pid) noexcept; static void SetPos(unsigned short pid, double x, double y, double z) noexcept; - static void SetAngle(unsigned short pid, double x, double y, double z) noexcept; + static void SetAngle(unsigned short pid, double x, double z) noexcept; static void SendPos(unsigned short pid) noexcept; };