Player spawn fix in co-op new games
If there aren't enough player spawns present in co-op, the game will instead fail to spawn extra players, waiting for the ticker to automatically capture the fact they have PST_ENTER. This presents a problem in WorldLoaded() where it becomes unreliable whether or not a player has truly spawned. This also means those extra players had slightly different spawn behavior compared to regular pawns.
This commit is contained in:
parent
f0aa0acf08
commit
287277b1f8
2 changed files with 13 additions and 1 deletions
|
|
@ -1478,7 +1478,7 @@ void FLevelLocals::DoLoadLevel(const FString &nextmapname, int position, bool au
|
|||
for (int i = 0; i<MAXPLAYERS; i++)
|
||||
{
|
||||
if (PlayerInGame(i) && Players[i]->mo != nullptr)
|
||||
P_PlayerStartStomp(Players[i]->mo);
|
||||
P_PlayerStartStomp(Players[i]->mo, !deathmatch);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue