Linux glimp commands only get registered once

This commit is contained in:
myT 2017-11-22 21:36:04 +01:00
parent 339bbea468
commit 120ee7e535

View file

@ -143,7 +143,12 @@ void Sys_GL_Init()
return;
Cvar_RegisterArray(glimp_cvars, MODULE_CLIENT);
Cmd_RegisterArray(glimp_cmds, MODULE_CLIENT);
static qbool firstInit = qtrue;
if (firstInit) {
Cmd_RegisterArray(glimp_cmds, MODULE_CLIENT);
firstInit = qfalse;
}
sdl_CreateMonitorList();
sdl_UpdateMonitorIndexFromCvar();