Setting hud_configure_prev to -1 to detect the very first frame isn't useful anymore.
{
if(!autocvar_hud_panel_centerprint) return;
- if (hud_configure_prev && hud_configure_prev != -1)
+ if(hud_configure_prev)
reset_centerprint_messages();
}
else
{
- if (!hud_configure_prev)
+ if(!hud_configure_prev)
reset_centerprint_messages();
if (time > hud_configure_cp_generation_time)
{
return;
}
- if(!hud_configure_prev || hud_configure_prev == -1)
+ if(!hud_configure_prev)
{
if(autocvar_hud_cursormode)
setcursormode(1);
WarpZone_Init();
hud_skin_path = strzone(strcat("gfx/hud/", autocvar_hud_skin));
- hud_configure_prev = -1;
-
draw_currentSkin = strzone(strcat("gfx/menu/", cvar_string("menu_skin")));
}