Cleaned up code slop in bonus_block.cpp introduced in commit f7f40c1
authorLMH <lmh.0013@gmail.com>
Mon, 20 Feb 2012 20:50:56 +0000 (10:50 -1000)
committerLMH <lmh.0013@gmail.com>
Mon, 20 Feb 2012 20:50:56 +0000 (10:50 -1000)
src/object/bonus_block.cpp

index 93e944c..e11c7de 100644 (file)
@@ -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 != "") {