reset GameTime properly if needed

This commit is contained in:
zicodxx 2007-02-20 02:16:42 +00:00
parent 93b4b0fea9
commit 9e46ec19c8
2 changed files with 4 additions and 0 deletions

View file

@ -5,6 +5,7 @@ D1X-Rebirth Changelog
arch/sdl/key.c: Added ENTER as Game key
texmap/scanline.c: removed unreliable gr_fade_table check in c_tmap_scanline_per()
arch/ogl/ogl.c, main/radar.c: don't show Radar box-fading in SDL; fixed OGL gr_ucircle()
main/game.c: reset GameTime properly if needed
20070219
--------

View file

@ -3303,6 +3303,9 @@ void GameLoop(int RenderFlag, int ReadControlsFlag )
else
memset(&Controls, 0, sizeof(Controls));
if (GameTime < 0)
GameTime = 0;
GameTime += FrameTime;
digi_sync_sounds();