From 657c6c73aa3fcd0676f425c4edd31dd1e893469d Mon Sep 17 00:00:00 2001 From: Christoph Sommer Date: Tue, 25 Jul 2006 00:38:44 +0000 Subject: [PATCH] Level stats are only declared invalid if a reset-point is actually used SVN-Revision: 4086 --- src/game_session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 != "") { -- 2.11.0