Merge tag 'g4.12.2'
This commit is contained in:
commit
330ec45d84
26 changed files with 181 additions and 107 deletions
|
|
@ -506,6 +506,18 @@ void P_SetupLevel(FLevelLocals *Level, int position, bool newGame)
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (newGame)
|
||||
{
|
||||
for (i = 0; i < MAXPLAYERS; ++i)
|
||||
{
|
||||
// Didn't have a player spawn available so spawn it now.
|
||||
if (Level->PlayerInGame(i) && Level->Players[i]->playerstate == PST_ENTER && Level->Players[i]->mo == nullptr)
|
||||
{
|
||||
FPlayerStart* mthing = Level->PickPlayerStart(i);
|
||||
Level->SpawnPlayer(mthing, i, (Level->flags2 & LEVEL2_PRERAISEWEAPON) ? SPF_WEAPONFULLYUP : 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// [SP] move unfriendly players around
|
||||
// horribly hacky - yes, this needs rewritten.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue