From: Christoph Sommer Date: Tue, 25 Jul 2006 00:38:44 +0000 (+0000) Subject: Level stats are only declared invalid if a reset-point is actually used X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=657c6c73aa3fcd0676f425c4edd31dd1e893469d;p=supertux.git Level stats are only declared invalid if a reset-point is actually used SVN-Revision: 4086 --- diff --git a/src/game_session.cpp b/src/game_session.cpp index c5729ebfe..809311cf8 100644 --- a/src/game_session.cpp +++ b/src/game_session.cpp @@ -122,7 +122,7 @@ GameSession::restart_level(bool fromBeginning) level->stats.total_badguys = level->get_total_badguys(); level->stats.total_secrets = level->get_total_count(); level->stats.reset(); - if (!fromBeginning) level->stats.declare_invalid(); + if (!fromBeginning && (reset_sector != "")) level->stats.declare_invalid(); if (fromBeginning) reset_sector=""; if(reset_sector != "") {