mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 13:21:31 +00:00
Tweak to D_MapChange: if you failed to start a server, DON'T send a map change command
This commit is contained in:
parent
c23cf25f65
commit
58236af6f7
1 changed files with 7 additions and 2 deletions
|
@ -1569,8 +1569,13 @@ void D_MapChange(INT32 mapnum, INT32 newgametype, boolean pultmode, boolean rese
|
||||||
mapchangepending = 0;
|
mapchangepending = 0;
|
||||||
// spawn the server if needed
|
// spawn the server if needed
|
||||||
// reset players if there is a new one
|
// reset players if there is a new one
|
||||||
if (!(adminplayer == consoleplayer) && SV_SpawnServer())
|
if (!(adminplayer == consoleplayer))
|
||||||
buf[0] &= ~(1<<1);
|
{
|
||||||
|
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
|
// Kick bot from special stages
|
||||||
if (botskin)
|
if (botskin)
|
||||||
|
|
Loading…
Reference in a new issue