- if(_type == FIREFLOWER)
- sprite = sprite_manager->create("fireflower");
- else
- sprite = sprite_manager->create("iceflower");
+ if(type == FIRE_BONUS) {
+ sprite = sprite_manager->create("images/powerups/fireflower/fireflower.sprite");
+ sound_manager->preload("sounds/fire-flower.wav");
+ }
+ else if(type == ICE_BONUS) {
+ sprite = sprite_manager->create("images/powerups/iceflower/iceflower.sprite");
+ sound_manager->preload("sounds/fire-flower.wav");
+ } else {
+ assert(false);
+ }