about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlfred Eriksson <somerunce@gmail.com>2009-01-17 22:19:13 +0000
committerAlfred Eriksson <somerunce@gmail.com>2009-01-17 22:19:13 +0000
commit2d4f6dffb909040a595bebd95116857f1079ebaf (patch)
tree4ad477591bce53dc9e811efbdac3ccb27e8880bd /src
parent335aa0feb24249e9473e5ddb982895ef380ac3c3 (diff)
downloadzcatch-2d4f6dffb909040a595bebd95116857f1079ebaf.tar.gz
zcatch-2d4f6dffb909040a595bebd95116857f1079ebaf.zip
fixed a weird bug causing game layer to be rendered wrong
Diffstat (limited to 'src')
-rw-r--r--src/game/client/components/maplayers.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/client/components/maplayers.cpp b/src/game/client/components/maplayers.cpp
index 9f46f4af..847350e6 100644
--- a/src/game/client/components/maplayers.cpp
+++ b/src/game/client/components/maplayers.cpp
@@ -89,15 +89,15 @@ void MAPLAYERS::on_render()
 			bool render = false;
 			bool is_game_layer = false;
 			
-			// skip rendering if detail layers if not wanted
-			if(layer->flags&LAYERFLAG_DETAIL && !config.gfx_high_detail)
-				continue;
-			
 			if(layer == (MAPITEM_LAYER*)layers_game_layer())
 			{
 				is_game_layer = true;
 				passed_gamelayer = 1;
 			}
+			
+			// skip rendering if detail layers if not wanted
+			if(layer->flags&LAYERFLAG_DETAIL && !config.gfx_high_detail && !is_game_layer)
+				continue;
 				
 			if(type == -1)
 				render = true;