diff --git a/src/game/client/render_map.cpp b/src/game/client/render_map.cpp index 4d1ed1b7e..4c7c43349 100644 --- a/src/game/client/render_map.cpp +++ b/src/game/client/render_map.cpp @@ -575,7 +575,7 @@ void CRenderTools::RenderSwitchOverlay(CSwitchTile *pSwitch, int w, int h, float int c = mx + my * w; unsigned char Index = pSwitch[c].m_Number; - if(Index) + if(Index && IsSwitchTileNumberUsed(pSwitch[c].m_Type)) { char aBuf[16]; str_format(aBuf, sizeof(aBuf), "%d", Index); @@ -585,7 +585,7 @@ void CRenderTools::RenderSwitchOverlay(CSwitchTile *pSwitch, int w, int h, float } unsigned char Delay = pSwitch[c].m_Delay; - if(Delay) + if(Delay && IsSwitchTileDelayUsed(pSwitch[c].m_Type)) { char aBuf[16]; str_format(aBuf, sizeof(aBuf), "%d", Delay);