From 5472c69ea3040b3837dc4584562a6e060e8b0144 Mon Sep 17 00:00:00 2001 From: tma Date: Mon, 21 Jul 2008 22:16:57 +0000 Subject: * Sign check com_maxfps* variables git-svn-id: svn://svn.icculus.org/quake3/trunk@1432 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/qcommon/common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'code/qcommon') diff --git a/code/qcommon/common.c b/code/qcommon/common.c index 52bc5f6..475d045 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -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; -- cgit v1.2.3