summaryrefslogtreecommitdiff
path: root/src/magicplatform.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-04-29 17:27:12 +0200
committerTreeki <treeki@gmail.com>2012-04-29 17:27:12 +0200
commitc10deba2e5c0ee0131021036b6bf489bd3b13c87 (patch)
treeb6595318ad0cfdd054fcebb8b65114f9f6d300bd /src/magicplatform.cpp
parente859131e73055ef78871e417849669766fe700c1 (diff)
downloadkamek-c10deba2e5c0ee0131021036b6bf489bd3b13c87.tar.gz
kamek-c10deba2e5c0ee0131021036b6bf489bd3b13c87.zip
fixed magic platforms
Diffstat (limited to '')
-rw-r--r--src/magicplatform.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/magicplatform.cpp b/src/magicplatform.cpp
index ae6631d..86a6b46 100644
--- a/src/magicplatform.cpp
+++ b/src/magicplatform.cpp
@@ -401,12 +401,12 @@ void daEnMagicPlatform_c::setVisible(bool shown) {
TileRenderer::List *list = dBgGm_c::instance->getTileRendererList(0);
for (int i = 0; i < rendererCount; i++) {
- if (shown) {
- if (!renderers[i].isInList() && renderers[i].tileNumber > 0)
+ if (renderers[i].tileNumber > 0) {
+ if (shown) {
list->add(&renderers[i]);
- } else {
- if (renderers[i].isInList())
+ } else {
list->remove(&renderers[i]);
+ }
}
}
}