projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8186452
)
restore coins if reset point was not used
author
Tim Goya
<tuxdev103@gmail.com>
Mon, 29 Jan 2007 15:22:35 +0000
(15:22 +0000)
committer
Tim Goya
<tuxdev103@gmail.com>
Mon, 29 Jan 2007 15:22:35 +0000
(15:22 +0000)
SVN-Revision: 4734
src/game_session.cpp
patch
|
blob
|
history
diff --git
a/src/game_session.cpp
b/src/game_session.cpp
index
2b539ee
..
ab1697f
100644
(file)
--- a/
src/game_session.cpp
+++ b/
src/game_session.cpp
@@
-386,7
+386,7
@@
GameSession::check_end_conditions()
} else if (!end_sequence && tux->is_dead()) {
if (player_status->coins < 0) {
// No more coins: restart level from beginning
- player_status->coins
= 0
;
+ player_status->coins
+= 25
;
restart_level(true);
} else {
// Still has coins: restart level from last reset point