From 727e26ce7f21ac93c2678e30a3834e35fc7fc7f8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Jun 2016 03:11:52 +0300 Subject: Fix being transparency with OpenGL renderers. --- src/resources/map/map.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp index 9e72684fe..e86c0c2a4 100644 --- a/src/resources/map/map.cpp +++ b/src/resources/map/map.cpp @@ -511,13 +511,9 @@ void Map::draw(Graphics *restrict const graphics, { if (Actor *const actor = *ai) { - // For now, just draw actors with only one layer. - if (actor->getNumberOfLayers() == 1) - { - actor->setAlpha(0.3F); - actor->draw(graphics, -scrollX, -scrollY); - actor->setAlpha(1.0F); - } + actor->setAlpha(0.3F); + actor->draw(graphics, -scrollX, -scrollY); + actor->setAlpha(1.0F); } ++ai; } -- cgit v1.2.3-70-g09d2