mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed a weird bug causing game layer to be rendered wrong
This commit is contained in:
parent
335aa0feb2
commit
2d4f6dffb9
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue