From: Christoph Sommer Date: Tue, 26 Feb 2008 19:43:56 +0000 (+0000) Subject: Fixed bouncing blocks bug in flipped levels X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b492f0a6b86fef80d523534f8c79b0e7330f646b;p=supertux.git Fixed bouncing blocks bug in flipped levels SVN-Revision: 5355 --- diff --git a/src/flip_level_transformer.cpp b/src/flip_level_transformer.cpp index 8cb5ff6d0..2d57f83e0 100644 --- a/src/flip_level_transformer.cpp +++ b/src/flip_level_transformer.cpp @@ -132,5 +132,5 @@ FlipLevelTransformer::transform_platform(float height, Platform& platform) void FlipLevelTransformer::transform_block(float height, Block& block) { - block.original_y = height - block.original_y - block.get_bbox().get_height(); + if (block.original_y != -1) block.original_y = height - block.original_y - block.get_bbox().get_height(); }