From 24fdd9872b4c93484e712eedacd80d1b6bef4d6c Mon Sep 17 00:00:00 2001 From: grumbel Date: Sat, 6 Mar 2010 12:12:26 +0000 Subject: [PATCH] Removed coin-cost for reset points git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6556 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- src/object/player.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/object/player.cpp b/src/object/player.cpp index a9162b581..e673d8696 100644 --- a/src/object/player.cpp +++ b/src/object/player.cpp @@ -1279,21 +1279,6 @@ Player::kill(bool completely) return; } - if (player_status->coins >= 25 && !GameSession::current()->get_reset_point_sectorname().empty()) - { - for (int i = 0; i < 5; i++) - { - // the numbers: starting x, starting y, velocity y - Sector::current()->add_object(new FallingCoin(get_pos() + - Vector(graphicsRandom.rand(5), graphicsRandom.rand(-32,18)), - graphicsRandom.rand(-100,100))); - } - player_status->coins -= std::max(player_status->coins/10, 25); - } - else - { - GameSession::current()->set_reset_point("", Vector()); - } physic.enable_gravity(true); physic.set_gravity_modifier(1.0f); // Undo jump_early_apex safe_timer.stop(); -- 2.11.0