From 39b6d400c24df4c194960697f125c48335a0dead Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Fri, 29 Feb 2008 18:36:56 +0000 Subject: [PATCH] maxfps 0 git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1677 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/main.cpp b/source/src/main.cpp index c1929f4e..9ea36902 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -291,10 +291,11 @@ void resetgl() COMMAND(resetgl, ARG_NONE); -VARP(maxfps, 5, 200, 500); +VARP(maxfps, 0, 200, 500); void limitfps(int &millis, int curmillis) { + if(!maxfps) return; static int fpserror = 0; int delay = 1000/maxfps - (millis-curmillis); if(delay < 0) fpserror = 0;