Add guard so justPlayed does not get set/decrease for maps in player-less dedicated servers

Works in tandem with the previous commits so that justPlayed stays at 0 for all levels until someone joins.
This commit is contained in:
JugadorXEI 2025-10-14 03:01:17 +02:00 committed by NepDisk
parent b08f2ca388
commit 1723ba407b

View file

@ -4852,6 +4852,9 @@ void G_AddMapToBuffer(mapnum_t map)
break;
}
#else
if (dedicated && D_NumPlayers() == 0)
return;
if (mapheaderinfo[map]->justPlayed == 0) // Started playing a new map.
{
// Decrement every maps' justPlayed value.