mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-06-03 02:11:22 +00:00
host_maxfps: warn the player if > 72 that physics will be broken
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1500 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
71d7d02eaf
commit
45f1df6112
1 changed files with 12 additions and 0 deletions
12
Quake/host.c
12
Quake/host.c
|
@ -98,6 +98,17 @@ static void Max_Edicts_f (cvar_t *var)
|
|||
Con_Printf ("Changes to max_edicts will not take effect until the next time a map is loaded.\n");
|
||||
}
|
||||
|
||||
/*
|
||||
================
|
||||
Max_Fps_f -- ericw
|
||||
================
|
||||
*/
|
||||
static void Max_Fps_f (cvar_t *var)
|
||||
{
|
||||
if (host_maxfps.value > 72)
|
||||
Con_Warning ("host_maxfps > 72 breaks physics.\n");
|
||||
}
|
||||
|
||||
/*
|
||||
================
|
||||
Host_EndGame
|
||||
|
@ -245,6 +256,7 @@ void Host_InitLocal (void)
|
|||
Cvar_RegisterVariable (&host_framerate);
|
||||
Cvar_RegisterVariable (&host_speeds);
|
||||
Cvar_RegisterVariable (&host_maxfps); //johnfitz
|
||||
Cvar_SetCallback (&host_maxfps, Max_Fps_f);
|
||||
Cvar_RegisterVariable (&host_timescale); //johnfitz
|
||||
|
||||
Cvar_RegisterVariable (&max_edicts); //johnfitz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue