projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
249ccff
)
Level stats are only declared invalid if a reset-point is actually used
author
Christoph Sommer
<mail@christoph-sommer.de>
Tue, 25 Jul 2006 00:38:44 +0000
(
00:38
+0000)
committer
Christoph Sommer
<mail@christoph-sommer.de>
Tue, 25 Jul 2006 00:38:44 +0000
(
00:38
+0000)
SVN-Revision: 4086
src/game_session.cpp
patch
|
blob
|
history
diff --git
a/src/game_session.cpp
b/src/game_session.cpp
index
c5729eb
..
809311c
100644
(file)
--- 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<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 != "") {