From: Ingo Ruhnke Date: Sun, 17 Aug 2014 01:44:24 +0000 (+0200) Subject: Fixed incorrect size in Sprite::draw_part() X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b6c8f724076e44e2fbce20b56c60b01278339873;p=supertux.git Fixed incorrect size in Sprite::draw_part() This caused breaking blocks look weird --- diff --git a/src/sprite/sprite.cpp b/src/sprite/sprite.cpp index 41c732fcd..c50864267 100644 --- a/src/sprite/sprite.cpp +++ b/src/sprite/sprite.cpp @@ -155,7 +155,7 @@ Sprite::draw_part(DrawingContext& context, const Vector& source, context.draw_surface_part(action->surfaces[frameidx], Rectf(source, Sizef(size)), Rectf(pos - Vector(action->x_offset, action->y_offset), - action->surfaces[frameidx]->get_size()), + Sizef(size)), layer + action->z_order); }