From 7ba1e5945f74f81c6daf74a5e5424fbbdfa8d0d0 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 6 Dec 2018 17:04:41 +0200 Subject: [PATCH] - fixed native calls to LevelLocals.GetUDMF*() functions https://forum.zdoom.org/viewtopic.php?t=62774 --- src/scripting/vmthunks.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripting/vmthunks.cpp b/src/scripting/vmthunks.cpp index 2d058bd31..6bfe8a2cb 100644 --- a/src/scripting/vmthunks.cpp +++ b/src/scripting/vmthunks.cpp @@ -2453,7 +2453,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(FLevelLocals, GetAutomapPosition, GetAutomapPositi ACTION_RETURN_VEC2(AM_GetPosition()); } -static int ZGetUDMFInt(int type, int index, int key) +static int ZGetUDMFInt(FLevelLocals *self, int type, int index, int key) { return GetUDMFInt(type, index, ENamedName(key)); } @@ -2467,7 +2467,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(FLevelLocals, GetUDMFInt, ZGetUDMFInt) ACTION_RETURN_INT(GetUDMFInt(type, index, key)); } -static double ZGetUDMFFloat(int type, int index, int key) +static double ZGetUDMFFloat(FLevelLocals *self, int type, int index, int key) { return GetUDMFFloat(type, index, ENamedName(key)); } @@ -2481,7 +2481,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(FLevelLocals, GetUDMFFloat, ZGetUDMFFloat) ACTION_RETURN_FLOAT(GetUDMFFloat(type, index, key)); } -static void ZGetUDMFString(int type, int index, int key, FString *result) +static void ZGetUDMFString(FLevelLocals *self, int type, int index, int key, FString *result) { *result = GetUDMFString(type, index, ENamedName(key)); }