summaryrefslogtreecommitdiff
path: root/src/magicplatform.cpp
diff options
context:
space:
mode:
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]);
+ }
}
}
}