From b492f0a6b86fef80d523534f8c79b0e7330f646b Mon Sep 17 00:00:00 2001 From: Christoph Sommer Date: Tue, 26 Feb 2008 19:43:56 +0000 Subject: [PATCH] Fixed bouncing blocks bug in flipped levels SVN-Revision: 5355 --- src/flip_level_transformer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.11.0