From: Tim Goya Date: Mon, 29 Jan 2007 16:02:51 +0000 (+0000) Subject: Restore coins when not using reset point, really X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=bb1e51d77df632eca2c4977429e831ae44e0dc98;p=supertux.git Restore coins when not using reset point, really SVN-Revision: 4735 --- diff --git a/src/game_session.cpp b/src/game_session.cpp index ab1697f81..84c1793cb 100644 --- a/src/game_session.cpp +++ b/src/game_session.cpp @@ -138,6 +138,7 @@ GameSession::restart_level(bool fromBeginning) } currentsector->activate(reset_pos); } else { + player_status->coins += 25; currentsector = level->get_sector("main"); if(!currentsector) throw std::runtime_error("Couldn't find main sector"); @@ -386,7 +387,6 @@ 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 += 25; restart_level(true); } else { // Still has coins: restart level from last reset point