mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +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_PROLOGUE;
|
||||||
PARAM_NAME(name);
|
PARAM_NAME(name);
|
||||||
PARAM_POINTER_DEF(plyr, player_t);
|
ACTION_RETURN_POINTER(FindCVar(name, nullptr));
|
||||||
ACTION_RETURN_POINTER(GetCVar(plyr ? plyr->mo : nullptr, name));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FBaseCVar *FindCVarSub (const char *var_name, int namelen)
|
FBaseCVar *FindCVarSub (const char *var_name, int namelen)
|
||||||
|
|
|
@ -286,7 +286,7 @@ struct CVar native
|
||||||
CVAR_Color,
|
CVAR_Color,
|
||||||
};
|
};
|
||||||
|
|
||||||
native static CVar FindCVar(Name name, PlayerInfo player = null);
|
native static CVar FindCVar(Name name);
|
||||||
native int GetInt();
|
native int GetInt();
|
||||||
native double GetFloat();
|
native double GetFloat();
|
||||||
native String GetString();
|
native String GetString();
|
||||||
|
|
Loading…
Reference in a new issue