fixed a weird bug causing game layer to be rendered wrong

This commit is contained in:
Alfred Eriksson 2009-01-17 22:19:13 +00:00
parent 335aa0feb2
commit 2d4f6dffb9

View file

@ -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;