Merge pull request #9093 from KebsCS/pr-fix-switch-overlay-text

Fix switch overlay text order
This commit is contained in:
Dennis Felsing 2024-10-02 15:50:01 +00:00 committed by GitHub
commit 46630debf7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1750,9 +1750,9 @@ void CMapLayers::OnRender()
RenderTileLayer(TileLayerCounter - 3, Color, pTMap, pGroup); RenderTileLayer(TileLayerCounter - 3, Color, pTMap, pGroup);
if(g_Config.m_ClTextEntities) if(g_Config.m_ClTextEntities)
{ {
Graphics()->TextureSet(m_pImages->GetOverlayBottom());
RenderTileLayer(TileLayerCounter - 2, Color, pTMap, pGroup);
Graphics()->TextureSet(m_pImages->GetOverlayTop()); Graphics()->TextureSet(m_pImages->GetOverlayTop());
RenderTileLayer(TileLayerCounter - 2, Color, pTMap, pGroup);
Graphics()->TextureSet(m_pImages->GetOverlayBottom());
RenderTileLayer(TileLayerCounter - 1, Color, pTMap, pGroup); RenderTileLayer(TileLayerCounter - 1, Color, pTMap, pGroup);
} }
} }