When creating a brick object to handle tiles with attribute brick the iced image...
[supertux.git] / src / object / brick.cpp
index f9a1d61..f37c609 100644 (file)
@@ -26,8 +26,8 @@
 #include "supertux/constants.hpp"
 #include "supertux/sector.hpp"
 
-Brick::Brick(const Vector& pos, int data)
-  : Block(sprite_manager->create("images/objects/bonus_block/brick.sprite")), breakable(false),
+Brick::Brick(const Vector& pos, int data, const std::string& spriteName)
+  : Block(sprite_manager->create(spriteName)), breakable(false),
     coin_counter(0)
 {
   bbox.set_pos(pos);