X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbadguy%2Fplant.cpp;h=2ddcd28921674615cce847979252f00ad4a9a284;hb=d097f456b8ab4f42058545bdd4f8f676d151e974;hp=9b98f63e1b730aa5c5f84361635ecc6c9c580e75;hpb=ff08b8e1983016221967a024dab76799a3d75059;p=supertux.git diff --git a/src/badguy/plant.cpp b/src/badguy/plant.cpp index 9b98f63e1..2ddcd2892 100644 --- a/src/badguy/plant.cpp +++ b/src/badguy/plant.cpp @@ -20,7 +20,7 @@ #include "sprite/sprite.hpp" #include "supertux/object_factory.hpp" -static const float WALKSPEED = 80; +static const float PLANT_SPEED = 80; static const float WAKE_TIME = .5; Plant::Plant(const Reader& reader) : @@ -97,7 +97,7 @@ Plant::active_update(float elapsed_time) { if(timer.check()) { // start walking sprite->set_action(dir == LEFT ? "left" : "right"); - physic.set_velocity_x(dir == LEFT ? -WALKSPEED : WALKSPEED); + physic.set_velocity_x(dir == LEFT ? -PLANT_SPEED : PLANT_SPEED); state = PLANT_WALKING; } }