X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fskull_tile.cpp;h=ef2ead930aa79b8f0bf1eb2af0886405c60dd7c6;hb=08ccb17345a52f5ffd8a5dd6ecf675cad55f16a7;hp=26b86bd563b8a103d70a95a9aa22cbc49502e771;hpb=4a486d92343d1824b311c234e9321e08f280fe68;p=supertux.git diff --git a/src/object/skull_tile.cpp b/src/object/skull_tile.cpp index 26b86bd56..ef2ead930 100644 --- a/src/object/skull_tile.cpp +++ b/src/object/skull_tile.cpp @@ -28,8 +28,8 @@ #include "sprite/sprite.hpp" #include "random_generator.hpp" -static const float CRACKTIME = 0.3; -static const float FALLTIME = 0.8; +static const float CRACKTIME = 0.3f; +static const float FALLTIME = 0.8f; SkullTile::SkullTile(const lisp::Lisp& lisp) : MovingSprite(lisp, "images/objects/skull_tile/skull_tile.sprite", LAYER_TILES, COLGROUP_STATIC), hit(false), falling(false) @@ -50,7 +50,7 @@ void SkullTile::draw(DrawingContext& context) { Vector pos = get_pos(); - // shacking + // shaking if(timer.get_timegone() > CRACKTIME) { pos.x += systemRandom.rand(-3, 3); }