aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-21 22:16:57 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-21 22:16:57 +0000
commit5472c69ea3040b3837dc4584562a6e060e8b0144 (patch)
tree7411fd960f8b0bef6101a592615c2152bc13ff8c /code
parent98228cce0dfe6591dc1b3a1c44852be0ca2adb4f (diff)
downloadioquake3-aero-5472c69ea3040b3837dc4584562a6e060e8b0144.tar.gz
ioquake3-aero-5472c69ea3040b3837dc4584562a6e060e8b0144.zip
* Sign check com_maxfps* variables
git-svn-id: svn://svn.icculus.org/quake3/trunk@1432 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r--code/qcommon/common.c6
1 files changed, 3 insertions, 3 deletions
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;