Skip to content

Commit

Permalink
Removed coin-cost for reset points
Browse files Browse the repository at this point in the history
SVN-Revision: 6556
  • Loading branch information
Ingo Ruhnke committed Mar 6, 2010
1 parent ccbdda9 commit 5dc6efa
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/object/player.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 5dc6efa

Please sign in to comment.