Level stats are only declared invalid if a reset-point is actually used
authorChristoph Sommer <mail@christoph-sommer.de>
Tue, 25 Jul 2006 00:38:44 +0000 (00:38 +0000)
committerChristoph Sommer <mail@christoph-sommer.de>
Tue, 25 Jul 2006 00:38:44 +0000 (00:38 +0000)
SVN-Revision: 4086

src/game_session.cpp

index c5729eb..809311c 100644 (file)
@@ -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<SecretAreaTrigger>();
   level->stats.reset();
-  if (!fromBeginning) level->stats.declare_invalid();
+  if (!fromBeginning && (reset_sector != "")) level->stats.declare_invalid();
 
   if (fromBeginning) reset_sector="";
   if(reset_sector != "") {