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
master
Guangcong Luo 2010-01-24 06:12:49 +00:00 committed by Git SVN Gateway
parent 525c32491a
commit 255506d4b6
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ void gameTimeUpdate(void)
// Pre-calculate fraction used in timeAdjustedIncrement // Pre-calculate fraction used in timeAdjustedIncrement
frameTimeFraction = (float)frameTime / (float)GAME_TICKS_PER_SEC; 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. // Game precision seems to drop too low after this.
// It's probably time to rebase // It's probably time to rebase