From 837be7241986e48eb1588fec9460be790ef30b04 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Mon, 3 Sep 2007 12:14:08 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1286 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/main.cpp | 4 ++-- source/src/physics.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/src/main.cpp b/source/src/main.cpp index b6629e09..30606d2b 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -406,8 +406,8 @@ int main(int argc, char **argv) limitfps(millis, curmillis); int elapsed = millis-curmillis; curtime = elapsed*gamespeed/100; - if(curtime>200) curtime = 200; - else if(curtime<1) curtime = 1; + //if(curtime>200) curtime = 200; + //else if(curtime<1) curtime = 1; cleardlights(); diff --git a/source/src/physics.cpp b/source/src/physics.cpp index 4d53d612..0967e6f1 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -432,7 +432,7 @@ void physicsframe() // optimally schedule physics frames inside the gra } else { - physicsrepeat = 1; + physicsrepeat = curtime>0 ? 1 : 0; } }