]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameTick.cpp
Fix 7s offset between shown challenge time and high score
[lugaru.git] / Source / GameTick.cpp
index 1dfebb29955118d4bdef80c76b18a149c64382bd..1a84485a31f86785300a89bbdcebfe5e6fc45944 100644 (file)
@@ -1105,6 +1105,7 @@ void Game::Loadlevel(const std::string& name)
         firstload = 1;
 
     leveltime = 0;
+    wonleveltime = 0;
     visibleloading = 0;
 }
 
@@ -6218,6 +6219,7 @@ void Game::TickOnceAfter()
                     accountactive->winCampaignLevel(whichchoice, bonustotal, leveltime);
                     scoreadded = 1;
                 } else {
+                    wonleveltime = leveltime;
                     accountactive->winLevel(whichlevel, bonustotal - startbonustotal, leveltime);
                 }
                 won = 1;