Con_Printf("Version: %s build %s\n", gamename, buildstring);
}
+static void Host_Framerate_c(cvar_t *var)
+{
+ if (var->value < 0.00001 && var->value != 0)
+ Cvar_SetValueQuick(var, 0);
+}
+
/*
=======================
Host_InitLocal
Cmd_AddCommand(CMD_SHARED, "loadconfig", Host_LoadConfig_f, "reset everything and reload configs");
Cvar_RegisterVariable (&cl_maxphysicsframesperserverframe);
Cvar_RegisterVariable (&host_framerate);
+ Cvar_RegisterCallback (&host_framerate, Host_Framerate_c);
Cvar_RegisterVariable (&host_speeds);
Cvar_RegisterVariable (&host_maxwait);
double sv_timer = 0;
static double wait;
- if (host_framerate.value < 0.00001 && host_framerate.value != 0)
- Cvar_SetValueQuick(&host_framerate, 0);
-
TaskQueue_Frame(false);
// keep the random time dependent, but not when playing demos/benchmarking