mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
Restored initial behavior of CVar.FindCVar()
https://mantis.zdoom.org/view.php?id=537
This commit is contained in:
parent
ac5e516148
commit
26e4b74261
2 changed files with 2 additions and 3 deletions
|
@ -1541,8 +1541,7 @@ DEFINE_ACTION_FUNCTION(_CVar, FindCVar)
|
|||
{
|
||||
PARAM_PROLOGUE;
|
||||
PARAM_NAME(name);
|
||||
PARAM_POINTER_DEF(plyr, player_t);
|
||||
ACTION_RETURN_POINTER(GetCVar(plyr ? plyr->mo : nullptr, name));
|
||||
ACTION_RETURN_POINTER(FindCVar(name, nullptr));
|
||||
}
|
||||
|
||||
FBaseCVar *FindCVarSub (const char *var_name, int namelen)
|
||||
|
|
|
@ -286,7 +286,7 @@ struct CVar native
|
|||
CVAR_Color,
|
||||
};
|
||||
|
||||
native static CVar FindCVar(Name name, PlayerInfo player = null);
|
||||
native static CVar FindCVar(Name name);
|
||||
native int GetInt();
|
||||
native double GetFloat();
|
||||
native String GetString();
|
||||
|
|
Loading…
Reference in a new issue