Fixed bouncing blocks bug in flipped levels
authorChristoph Sommer <mail@christoph-sommer.de>
Tue, 26 Feb 2008 19:43:56 +0000 (19:43 +0000)
committerChristoph Sommer <mail@christoph-sommer.de>
Tue, 26 Feb 2008 19:43:56 +0000 (19:43 +0000)
SVN-Revision: 5355

src/flip_level_transformer.cpp

index 8cb5ff6..2d57f83 100644 (file)
@@ -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();
 }