#ifdef IMPLEMENTATION
float CheckFirstRunButton(entity me)
{
- if(cvar_string("_cl_name") != "Player")
+ if(cvar_string("_cl_name") != cvar_defstring("_cl_name"))
return 1;
if(cvar_string("_menu_prvm_language") != prvm_language)
}
void XonoticPlayerSettingsTab_draw(entity me)
{
- if(cvar_string("_cl_name") == "Player")
+ if(cvar_string("_cl_name") == cvar_defstring("_cl_name"))
me.playerNameLabel.alpha = ((mod(time * 2, 2) < 1) ? 1 : 0);
else
me.playerNameLabel.alpha = me.playerNameLabelAlpha;
me.initializeDialog(me, n);
- if(cvar_string("_cl_name") == "Player")
+ if(cvar_string("_cl_name") == cvar_defstring("_cl_name"))
me.dialogToShow = me.firstRunDialog;
}
#endif