From: LMH Date: Mon, 20 Feb 2012 20:50:56 +0000 (-1000) Subject: Cleaned up code slop in bonus_block.cpp introduced in commit f7f40c1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ee1ac3330b695b5656654f908afe16e5922d911d;p=supertux.git Cleaned up code slop in bonus_block.cpp introduced in commit f7f40c1 --- diff --git a/src/object/bonus_block.cpp b/src/object/bonus_block.cpp index 93e944c88..e11c7ded3 100644 --- a/src/object/bonus_block.cpp +++ b/src/object/bonus_block.cpp @@ -217,13 +217,11 @@ BonusBlock::try_open(Player *player) break; case CONTENT_CUSTOM: - { - SpecialRiser* riser = new SpecialRiser(get_pos(), object); - object = 0; - sector->add_object(riser); - sound_manager->play("sounds/upgrade.wav"); - break; - } + SpecialRiser* riser = new SpecialRiser(get_pos(), object); + object = 0; + sector->add_object(riser); + sound_manager->play("sounds/upgrade.wav"); + break; case CONTENT_SCRIPT: if(script != "") {