- Pass playernum as a parameter to P_SpawnPlayer(). Now P_SpawnMapThing() is the only thing

that uses the MapThing's type to determine the which player is spawning.

SVN r3748 (trunk)
This commit is contained in:
Randy Heit 2012-07-07 22:52:37 +00:00
commit 390fd5dd6c
5 changed files with 10 additions and 42 deletions

View file

@ -1121,7 +1121,7 @@ void G_FinishTravel ()
// The player being spawned here is a short lived dummy and
// must not start any ENTER script or big problems will happen.
pawndup = P_SpawnPlayer (&playerstarts[pawn->player - players], true);
pawndup = P_SpawnPlayer (&playerstarts[pawn->player - players], pawn->player - players, true);
if (!(changeflags & CHANGELEVEL_KEEPFACING))
{
pawn->angle = pawndup->angle;