restore coins if reset point was not used
authorTim Goya <tuxdev103@gmail.com>
Mon, 29 Jan 2007 15:22:35 +0000 (15:22 +0000)
committerTim Goya <tuxdev103@gmail.com>
Mon, 29 Jan 2007 15:22:35 +0000 (15:22 +0000)
SVN-Revision: 4734

src/game_session.cpp

index 2b539ee..ab1697f 100644 (file)
@@ -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