X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbadguy%2Ftotem.cpp;h=70bd8503d227542a6cd9c63d73d86f64426378cc;hb=0a4882b7162ed25835c2c5e398bb80fa12b77129;hp=068472e6b833a072514043977763363884266670;hpb=729bc6717bf68314dc9fad25db3a9f728062263e;p=supertux.git diff --git a/src/badguy/totem.cpp b/src/badguy/totem.cpp index 068472e6b..70bd8503d 100644 --- a/src/badguy/totem.cpp +++ b/src/badguy/totem.cpp @@ -24,7 +24,6 @@ #include -static const float WALKSPEED = 100; static const float JUMP_ON_SPEED_Y = -400; static const float JUMP_OFF_SPEED_Y = -500; static const std::string LAND_ON_TOTEM_SOUND = "sounds/totem.ogg"; @@ -61,6 +60,7 @@ void Totem::initialize() { if (!carried_by) { +static const float WALKSPEED = 100; physic.set_velocity_x(dir == LEFT ? -WALKSPEED : WALKSPEED); sprite->set_action(dir == LEFT ? "walking-left" : "walking-right"); return;