mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-22 11:21:09 +00:00
- fixed native calls to LevelLocals.GetUDMF*() functions
https://forum.zdoom.org/viewtopic.php?t=62774
This commit is contained in:
parent
c90e4b773a
commit
7ba1e5945f
1 changed files with 3 additions and 3 deletions
|
@ -2453,7 +2453,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(FLevelLocals, GetAutomapPosition, GetAutomapPositi
|
||||||
ACTION_RETURN_VEC2(AM_GetPosition());
|
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));
|
return GetUDMFInt(type, index, ENamedName(key));
|
||||||
}
|
}
|
||||||
|
@ -2467,7 +2467,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(FLevelLocals, GetUDMFInt, ZGetUDMFInt)
|
||||||
ACTION_RETURN_INT(GetUDMFInt(type, index, key));
|
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));
|
return GetUDMFFloat(type, index, ENamedName(key));
|
||||||
}
|
}
|
||||||
|
@ -2481,7 +2481,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(FLevelLocals, GetUDMFFloat, ZGetUDMFFloat)
|
||||||
ACTION_RETURN_FLOAT(GetUDMFFloat(type, index, key));
|
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));
|
*result = GetUDMFString(type, index, ENamedName(key));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue