X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbadguy%2Flivefire.cpp;h=cc5011c1f41ede22404cc39428f352d617df6347;hb=7669b5949a713ed83ba1c1ec0a22ec9138c25bd7;hp=9fb56a734cab5fbb006819fcd028e2b933455769;hpb=587bcdb7735169a9cd29d48736f79f26f7652150;p=supertux.git diff --git a/src/badguy/livefire.cpp b/src/badguy/livefire.cpp index 9fb56a734..cc5011c1f 100644 --- a/src/badguy/livefire.cpp +++ b/src/badguy/livefire.cpp @@ -23,16 +23,13 @@ #include "supertux/object_factory.hpp" #include "supertux/sector.hpp" -static const float WALKSPEED = 80; -static const float MAXDROPHEIGHT = 20; - 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")), state(STATE_WALKING) { - walk_speed = WALKSPEED; - max_drop_height = MAXDROPHEIGHT; + walk_speed = 80; + max_drop_height = 20; lightsprite->set_blend(Blend(GL_SRC_ALPHA, GL_ONE)); lightsprite->set_color(Color(1.0f, 0.9f, 0.8f)); death_sound = "sounds/fall.wav";