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:
parent
b08f2ca388
commit
1723ba407b
1 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue