X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbadguy%2Fsspiky.cpp;h=013d8347f0cb5dd23f143ffce9bf6b529bf79dff;hb=db14b806439363d7f4809d0d5e4187e356295841;hp=a386184df63341f4dabbdd09faa611a1b015034d;hpb=fcd88f958ec9570e11fe1f8aed08cb290696e281;p=supertux.git diff --git a/src/badguy/sspiky.cpp b/src/badguy/sspiky.cpp index a386184df..013d8347f 100644 --- a/src/badguy/sspiky.cpp +++ b/src/badguy/sspiky.cpp @@ -20,12 +20,10 @@ #include "sprite/sprite.hpp" #include "supertux/object_factory.hpp" -static const float WALKSPEED = 80; - SSpiky::SSpiky(const Reader& reader) : WalkingBadguy(reader, "images/creatures/spiky/sleepingspiky.sprite", "left", "right"), state(SSPIKY_SLEEPING) { - walk_speed = WALKSPEED; + walk_speed = 80; max_drop_height = 600; } @@ -101,7 +99,6 @@ void SSpiky::freeze() { WalkingBadguy::freeze(); - sprite->set_action(dir == LEFT ? "iced-left" : "iced-right"); state = SSPIKY_WALKING; // if we get hit while sleeping, wake up :) }