summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-12-25 17:43:38 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-12-25 17:44:44 +0100
commit392b04263fd4e770d75890cd790d562cc23438dd (patch)
treed5678551bf5adc93fcc5a8367cd9f7f78ff0dd34 /src
parenta31fce06e41ac33ca6ed12065644b314ceb4bcb3 (diff)
downloadMana-392b04263fd4e770d75890cd790d562cc23438dd.tar.gz
Mana-392b04263fd4e770d75890cd790d562cc23438dd.tar.bz2
Mana-392b04263fd4e770d75890cd790d562cc23438dd.tar.xz
Mana-392b04263fd4e770d75890cd790d562cc23438dd.zip
Always draw the first background image - even when ambient effects are off - to avoid graphic errors.
Diffstat (limited to 'src')
-rw-r--r--src/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 355b7811..e4d68756 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -440,8 +440,8 @@ void Map::updateAmbientLayers(float scrollX, float scrollY)
void Map::drawAmbientLayers(Graphics *graphics, LayerType type,
float scrollX, float scrollY, int detail)
{
- // Detail 0: no overlays
- if (detail <= 0) return;
+ // Detail 0 = no ambient effects except background image
+ if (detail <= 0 && type != BACKGROUND_LAYERS) return;
// find out which layer list to draw
std::list<AmbientLayer*> *layers;