summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-14 03:11:52 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-14 03:11:52 +0300
commit727e26ce7f21ac93c2678e30a3834e35fc7fc7f8 (patch)
tree41706ce4e6e0b59d202923b65b1849d6d55cb38e /src
parentda65a16e69409fb76010efebbbbbc749ce2eb4e7 (diff)
downloadmv-727e26ce7f21ac93c2678e30a3834e35fc7fc7f8.tar.gz
mv-727e26ce7f21ac93c2678e30a3834e35fc7fc7f8.tar.bz2
mv-727e26ce7f21ac93c2678e30a3834e35fc7fc7f8.tar.xz
mv-727e26ce7f21ac93c2678e30a3834e35fc7fc7f8.zip
Fix being transparency with OpenGL renderers.
Diffstat (limited to 'src')
-rw-r--r--src/resources/map/map.cpp10
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;
}