X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbadguy%2Flivefire.cpp;h=55c91ad6e18db1a8ea6f3478031363285381232a;hb=575ee7830c331b48172dccacc7a96188f8d6695b;hp=46b0ba59e2829c511044debf94f2513b96bbb15f;hpb=2b4d3758e0f8d3a8de962f85eea5a4ada723706d;p=supertux.git diff --git a/src/badguy/livefire.cpp b/src/badguy/livefire.cpp index 46b0ba59e..55c91ad6e 100644 --- a/src/badguy/livefire.cpp +++ b/src/badguy/livefire.cpp @@ -25,9 +25,9 @@ LiveFire::LiveFire(const Reader& reader) : WalkingBadguy(reader, "images/creatures/livefire/livefire.sprite", "left", "right"), - lightsprite(sprite_manager->create("images/objects/lightmap_light/lightmap_light-medium.sprite")), + lightsprite(SpriteManager::current()->create("images/objects/lightmap_light/lightmap_light-medium.sprite")), death_sound("sounds/fall.wav"), - state(STATE_WALKING) + state(STATE_WALKING) { walk_speed = 80; max_drop_height = 20; @@ -131,7 +131,7 @@ LiveFire::is_flammable() const void LiveFire::kill_fall() { - sound_manager->play(death_sound, get_pos()); + SoundManager::current()->play(death_sound, get_pos()); // throw a puff of smoke Vector ppos = bbox.get_middle(); Vector pspeed = Vector(0, -150);