diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-14 03:11:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-14 03:11:52 +0300 |
commit | 727e26ce7f21ac93c2678e30a3834e35fc7fc7f8 (patch) | |
tree | 41706ce4e6e0b59d202923b65b1849d6d55cb38e /src | |
parent | da65a16e69409fb76010efebbbbbc749ce2eb4e7 (diff) | |
download | plus-727e26ce7f21ac93c2678e30a3834e35fc7fc7f8.tar.gz plus-727e26ce7f21ac93c2678e30a3834e35fc7fc7f8.tar.bz2 plus-727e26ce7f21ac93c2678e30a3834e35fc7fc7f8.tar.xz plus-727e26ce7f21ac93c2678e30a3834e35fc7fc7f8.zip |
Fix being transparency with OpenGL renderers.
Diffstat (limited to 'src')
-rw-r--r-- | src/resources/map/map.cpp | 10 |
1 files 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; } |