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-861f7616d084master
parent
525c32491a
commit
255506d4b6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue