]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
don't allow drawframetime to be > 1 sec (sorry, laggers)
authorRudolf Polzer <divVerent@xonotic.org>
Sat, 4 Jun 2011 04:35:16 +0000 (06:35 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Sat, 4 Jun 2011 04:35:16 +0000 (06:35 +0200)
qcsrc/client/View.qc

index 82a18f2437561a9fa4a117f7d0835c3babdeb5c0..90601ce953ed3a52d71331df9bd149549db6a553 100644 (file)
@@ -488,7 +488,7 @@ void CSQC_UpdateView(float w, float h)
        TargetMusic_Advance();
        Fog_Force();
 
-       drawframetime = max(0.000001, time - drawtime);
+       drawframetime = bound(0.000001, time - drawtime, 1);
        drawtime = time;
 
        // watch for gametype changes here...