forked from teamnwah/openmw-tes3coop
[Server] Use double instead of int for scale in WorldFunctions
This commit is contained in:
parent
018b0e6699
commit
7ebad596d6
2 changed files with 4 additions and 4 deletions
|
@ -86,7 +86,7 @@ void WorldFunctions::SetObjectGoldValue(int goldValue) noexcept
|
|||
tempWorldObject.goldValue = goldValue;
|
||||
}
|
||||
|
||||
void WorldFunctions::SetObjectScale(int scale) noexcept
|
||||
void WorldFunctions::SetObjectScale(double scale) noexcept
|
||||
{
|
||||
tempWorldObject.scale = scale;
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ int WorldFunctions::GetObjectGoldValue(unsigned int i) noexcept
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ public:
|
|||
static void SetObjectRefNumIndex(int refNumIndex) noexcept;
|
||||
static void SetObjectCount(int count) 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 SetObjectLockLevel(int lockLevel) 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 GetObjectCount(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 GetObjectLockLevel(unsigned int i) noexcept;
|
||||
static double GetObjectPosX(unsigned int i) noexcept;
|
||||
|
|
Loading…
Reference in a new issue