dont send server icon if current map is supposed to be hidden

in line with kart not sending maptitle to ms in the same case
This commit is contained in:
Alug committed 2025-09-15 16:16:31 +02:00
1 parent 2c0bf12441
commit 9fcd35204e
1 file changed
+1 -1
+1 -1
View File
@@ -1728,7 +1728,7 @@ static void SV_SendMapIcon(INT32 node)
doomdata_t *netbuffer = DOOMCOM_DATA(doomcom);
const char *map = va("%sP", G_BuildMapName(gamemap));
if (!W_LumpExists(map))
if (!W_LumpExists(map) || (mapheaderinfo[gamemap-1]->menuflags & LF2_HIDEINMENU))
{
// send an empty icon to tell the client there is no map icon
netbuffer->packettype = PT_MAPICON;