X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftile.cpp;h=6c75fb1e3c6b066ea539dfb8f4438568361a6ee1;hb=c1583b50b204a0c9e50c7b7750db50d24ff5f6fa;hp=118055ebce62a7a116e99d6d9bcd318ea4be0e7b;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/tile.cpp b/src/tile.cpp index 118055ebc..6c75fb1e3 100644 --- a/src/tile.cpp +++ b/src/tile.cpp @@ -167,7 +167,7 @@ void Tile::draw(DrawingContext& context, const Vector& pos, int layer) const { if(images.size() > 1) { - size_t frame = size_t(global_time * anim_fps) % images.size(); + size_t frame = size_t(game_time * anim_fps) % images.size(); context.draw_surface(images[frame], pos, layer); } else if (images.size() == 1) { context.draw_surface(images[0], pos, layer);