From 1fc9dd4f930198494120aeac6cf8cf29d2603ae7 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 30 Jan 2017 17:42:29 +0200 Subject: [PATCH] [Server] Remove WorldFunctions index parameters that are no longer used --- apps/openmw-mp/Script/Functions/World.cpp | 13 ++++++------- apps/openmw-mp/Script/Functions/World.hpp | 12 ++++++------ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/apps/openmw-mp/Script/Functions/World.cpp b/apps/openmw-mp/Script/Functions/World.cpp index f6c961c24..e4e556092 100644 --- a/apps/openmw-mp/Script/Functions/World.cpp +++ b/apps/openmw-mp/Script/Functions/World.cpp @@ -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; diff --git a/apps/openmw-mp/Script/Functions/World.hpp b/apps/openmw-mp/Script/Functions/World.hpp index e9803cc48..b72681e62 100644 --- a/apps/openmw-mp/Script/Functions/World.hpp +++ b/apps/openmw-mp/Script/Functions/World.hpp @@ -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;