From 255506d4b6e187ea1d0cdd7fcd7aed0162a7f26b Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Sun, 24 Jan 2010 06:12:49 +0000 Subject: [PATCH] Correctly calculate frameTimeFraction2 - fix bug #482, among many other bugs. git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9461 4a71c877-e1ca-e34f-864e-861f7616d084 --- lib/gamelib/gtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gamelib/gtime.c b/lib/gamelib/gtime.c index aa6b52651..dc0c3f7be 100644 --- a/lib/gamelib/gtime.c +++ b/lib/gamelib/gtime.c @@ -159,7 +159,7 @@ void gameTimeUpdate(void) // Pre-calculate fraction used in timeAdjustedIncrement frameTimeFraction = (float)frameTime / (float)GAME_TICKS_PER_SEC; - frameTimeFraction2 = (float)frameTime / (float)GAME_TICKS_PER_SEC; + frameTimeFraction2 = (float)frameTime2 / (float)GAME_TICKS_PER_SEC; // Game precision seems to drop too low after this. // It's probably time to rebase