From c10deba2e5c0ee0131021036b6bf489bd3b13c87 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sun, 29 Apr 2012 17:27:12 +0200 Subject: fixed magic platforms --- src/magicplatform.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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]); + } } } } -- cgit v1.2.3