Tweak to D_MapChange: if you failed to start a server, DON'T send a map change command

This commit is contained in:
Monster Iestyn 2017-05-25 16:55:59 +01:00
parent c23cf25f65
commit 58236af6f7
1 changed files with 7 additions and 2 deletions

View File

@ -1569,8 +1569,13 @@ void D_MapChange(INT32 mapnum, INT32 newgametype, boolean pultmode, boolean rese
mapchangepending = 0;
// spawn the server if needed
// reset players if there is a new one
if (!(adminplayer == consoleplayer) && SV_SpawnServer())
buf[0] &= ~(1<<1);
if (!(adminplayer == consoleplayer))
{
if (SV_SpawnServer())
buf[0] &= ~(1<<1);
if (!Playing()) // you failed to start a server somehow, so cancel the map change
return;
}
// Kick bot from special stages
if (botskin)