* Sign check com_maxfps* variables

This commit is contained in:
Tim Angus 2008-07-21 22:16:57 +00:00
parent 0124371c01
commit 71f8a85e42

View file

@ -2849,11 +2849,11 @@ void Com_Frame( void ) {
// we may want to spin here if things are going too fast
if ( !com_dedicated->integer && !com_timedemo->integer ) {
if( com_minimized->integer && com_maxfpsMinimized->integer ) {
if( com_minimized->integer && com_maxfpsMinimized->integer > 0 ) {
minMsec = 1000 / com_maxfpsMinimized->integer;
} else if( com_unfocused->integer && com_maxfpsUnfocused->integer ) {
} else if( com_unfocused->integer && com_maxfpsUnfocused->integer > 0 ) {
minMsec = 1000 / com_maxfpsUnfocused->integer;
} else if( com_maxfps->integer ) {
} else if( com_maxfps->integer > 0 ) {
minMsec = 1000 / com_maxfps->integer;
} else {
minMsec = 1;