From f6561ca23b07b3764b110966da15b0da9d5363e1 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 c6998fec2..1bafaf84a 100644 --- a/src/scripting/vmthunks.cpp +++ b/src/scripting/vmthunks.cpp @@ -2451,7 +2451,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)); } @@ -2465,7 +2465,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)); } @@ -2479,7 +2479,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)); }