Merge branch 'master' of https://github.com/rheit/zdoom
This commit is contained in:
commit
d65589281f
3 changed files with 26 additions and 16 deletions
|
|
@ -642,6 +642,11 @@ static void ReadOnePlayer(FSerializer &arc, bool skipload)
|
|||
{
|
||||
CopyPlayer(&players[i], &playerTemp, name);
|
||||
}
|
||||
else
|
||||
{
|
||||
// we need the player actor, so that G_FinishTravel can destroy it later.
|
||||
players[i].mo = playerTemp.mo;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -755,6 +760,13 @@ static void ReadMultiplePlayers(FSerializer &arc, int numPlayers, int numPlayers
|
|||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (i = 0; i < MAXPLAYERS; ++i)
|
||||
{
|
||||
players[i].mo = playertemp[i].mo;
|
||||
}
|
||||
}
|
||||
|
||||
delete[] tempPlayerUsed;
|
||||
delete[] playertemp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue