projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added chinese fonts and translation from Liu Sizhuang <oldherl@gmail.com>
[supertux.git]
/
src
/
flip_level_transformer.cpp
diff --git
a/src/flip_level_transformer.cpp
b/src/flip_level_transformer.cpp
index
8cb5ff6
..
2d57f83
100644
(file)
--- 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)
{
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();
}
}