[Server] Remove WorldFunctions index parameters that are no longer used

coverity_scan^2
David Cernat 8 years ago
parent 9f998c9901
commit 1fc9dd4f93

@ -63,35 +63,34 @@ void WorldFunctions::SetWorldEventCell(const char* cellDescription) noexcept
}
}
void WorldFunctions::SetObjectRefId(unsigned int i, const char* refId) noexcept
void WorldFunctions::SetObjectRefId(const char* refId) noexcept
{
printf("SetObjectRefId(%i, %s)\n", i, refId);
tempWorldObject.refId = refId;
}
void WorldFunctions::SetObjectRefNumIndex(unsigned int i, int refNumIndex) noexcept
void WorldFunctions::SetObjectRefNumIndex(int refNumIndex) noexcept
{
tempWorldObject.refNumIndex = refNumIndex;
}
void WorldFunctions::SetObjectCount(unsigned int i, int count) noexcept
void WorldFunctions::SetObjectCount(int count) noexcept
{
tempWorldObject.count = count;
}
void WorldFunctions::SetObjectGoldValue(unsigned int i, int goldValue) noexcept
void WorldFunctions::SetObjectGoldValue(int goldValue) noexcept
{
tempWorldObject.goldValue = goldValue;
}
void WorldFunctions::SetObjectPosition(unsigned int i, double x, double y, double z) noexcept
void WorldFunctions::SetObjectPosition(double x, double y, double z) noexcept
{
tempWorldObject.pos.pos[0] = x;
tempWorldObject.pos.pos[1] = y;
tempWorldObject.pos.pos[2] = z;
}
void WorldFunctions::SetObjectRotation(unsigned int i, double x, double y, double z) noexcept
void WorldFunctions::SetObjectRotation(double x, double y, double z) noexcept
{
tempWorldObject.pos.rot[0] = x;
tempWorldObject.pos.rot[1] = y;

@ -43,12 +43,12 @@ public:
static void AddWorldObject() noexcept;
static void SetWorldEventCell(const char* cellDescription) noexcept;
static void SetObjectRefId(unsigned int i, const char* refId) noexcept;
static void SetObjectRefNumIndex(unsigned int i, int refNumIndex) noexcept;
static void SetObjectCount(unsigned int i, int count) noexcept;
static void SetObjectGoldValue(unsigned int i, int goldValue) noexcept;
static void SetObjectPosition(unsigned int i, double x, double y, double z) noexcept;
static void SetObjectRotation(unsigned int i, double x, double y, double z) noexcept;
static void SetObjectRefId(const char* refId) noexcept;
static void SetObjectRefNumIndex(int refNumIndex) noexcept;
static void SetObjectCount(int count) noexcept;
static void SetObjectGoldValue(int goldValue) noexcept;
static void SetObjectPosition(double x, double y, double z) noexcept;
static void SetObjectRotation(double x, double y, double z) noexcept;
static unsigned int GetObjectChangesSize() noexcept;

Loading…
Cancel
Save