1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-05-01 02:41:27 +00:00

[Server] Use double instead of int for scale in WorldFunctions

This commit is contained in:
David Cernat 2017-02-01 12:53:51 +02:00
parent 018b0e6699
commit 7ebad596d6
2 changed files with 4 additions and 4 deletions

View file

@ -86,7 +86,7 @@ void WorldFunctions::SetObjectGoldValue(int goldValue) noexcept
tempWorldObject.goldValue = goldValue; tempWorldObject.goldValue = goldValue;
} }
void WorldFunctions::SetObjectScale(int scale) noexcept void WorldFunctions::SetObjectScale(double scale) noexcept
{ {
tempWorldObject.scale = scale; tempWorldObject.scale = scale;
} }
@ -140,7 +140,7 @@ int WorldFunctions::GetObjectGoldValue(unsigned int i) noexcept
return mwmp::Networking::getPtr()->getLastEvent()->objectChanges.objects.at(i).goldValue; return mwmp::Networking::getPtr()->getLastEvent()->objectChanges.objects.at(i).goldValue;
} }
int WorldFunctions::GetObjectScale(unsigned int i) noexcept double WorldFunctions::GetObjectScale(unsigned int i) noexcept
{ {
return mwmp::Networking::getPtr()->getLastEvent()->objectChanges.objects.at(i).scale; return mwmp::Networking::getPtr()->getLastEvent()->objectChanges.objects.at(i).scale;
} }

View file

@ -57,7 +57,7 @@ public:
static void SetObjectRefNumIndex(int refNumIndex) noexcept; static void SetObjectRefNumIndex(int refNumIndex) noexcept;
static void SetObjectCount(int count) noexcept; static void SetObjectCount(int count) noexcept;
static void SetObjectGoldValue(int goldValue) noexcept; static void SetObjectGoldValue(int goldValue) noexcept;
static void SetObjectScale(int scale) noexcept; static void SetObjectScale(double scale) noexcept;
static void SetObjectState(int scale) noexcept; static void SetObjectState(int scale) noexcept;
static void SetObjectLockLevel(int lockLevel) noexcept; static void SetObjectLockLevel(int lockLevel) noexcept;
static void SetObjectPosition(double x, double y, double z) noexcept; static void SetObjectPosition(double x, double y, double z) noexcept;
@ -69,7 +69,7 @@ public:
static int GetObjectRefNumIndex(unsigned int i) noexcept; static int GetObjectRefNumIndex(unsigned int i) noexcept;
static int GetObjectCount(unsigned int i) noexcept; static int GetObjectCount(unsigned int i) noexcept;
static int GetObjectGoldValue(unsigned int i) noexcept; static int GetObjectGoldValue(unsigned int i) noexcept;
static int GetObjectScale(unsigned int i) noexcept; static double GetObjectScale(unsigned int i) noexcept;
static int GetObjectState(unsigned int i) noexcept; static int GetObjectState(unsigned int i) noexcept;
static int GetObjectLockLevel(unsigned int i) noexcept; static int GetObjectLockLevel(unsigned int i) noexcept;
static double GetObjectPosX(unsigned int i) noexcept; static double GetObjectPosX(unsigned int i) noexcept;