diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-09-11 23:28:37 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-09-11 23:28:37 +0000 |
commit | c5f6b68f07b7c06b1672a270f3cc103755ba95f0 (patch) | |
tree | f0aa03e779c527a90a8bd051e5ee96829f8b1817 | |
parent | e496e082e38a8c962f23bfac7ce1fa7400ed3bf6 (diff) | |
download | mana-c5f6b68f07b7c06b1672a270f3cc103755ba95f0.tar.gz mana-c5f6b68f07b7c06b1672a270f3cc103755ba95f0.tar.bz2 mana-c5f6b68f07b7c06b1672a270f3cc103755ba95f0.tar.xz mana-c5f6b68f07b7c06b1672a270f3cc103755ba95f0.zip |
Small followup fix to solve the blackout after 100 seconds.
-rw-r--r-- | src/game.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index a6057d07..e548e1ef 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -389,6 +389,10 @@ void Game::logic() engine->draw(graphics); graphics->updateScreen(); mDrawTime += mMinFrameTime; + + // Make sure to wrap mDrawTime, since tick_time will wrap. + if (mDrawTime > MAX_TIME * 10) + mDrawTime -= MAX_TIME * 10; } else { |