Restored initial behavior of CVar.FindCVar()

https://mantis.zdoom.org/view.php?id=537
This commit is contained in:
alexey.lysiuk 2017-04-06 10:46:49 +03:00
parent ac5e516148
commit 26e4b74261
2 changed files with 2 additions and 3 deletions

View file

@ -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)

View file

@ -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();