diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-12-25 17:43:38 +0100 |
---|---|---|
committer | Philipp Sehmisch <crush@themanaworld.org> | 2009-12-25 17:44:44 +0100 |
commit | 392b04263fd4e770d75890cd790d562cc23438dd (patch) | |
tree | d5678551bf5adc93fcc5a8367cd9f7f78ff0dd34 | |
parent | a31fce06e41ac33ca6ed12065644b314ceb4bcb3 (diff) | |
download | mana-client-392b04263fd4e770d75890cd790d562cc23438dd.tar.gz mana-client-392b04263fd4e770d75890cd790d562cc23438dd.tar.bz2 mana-client-392b04263fd4e770d75890cd790d562cc23438dd.tar.xz mana-client-392b04263fd4e770d75890cd790d562cc23438dd.zip |
Always draw the first background image - even when ambient effects are off - to avoid graphic errors.
-rw-r--r-- | src/map.cpp | 4 |
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; |