- Added MAPINFO flag RandomPlayerStarts. In this mode, no voodoo dolls are spawned. Instead, all

player starts are added to a pool, and players spawn at a random spot.

SVN r3749 (trunk)
This commit is contained in:
Randy Heit 2012-07-08 01:43:47 +00:00
commit 71601f91d1
11 changed files with 85 additions and 43 deletions

View file

@ -4481,9 +4481,11 @@ AActor *P_SpawnMapThing (FMapThing *mthing, int position)
// save spots for respawning in network games
playerstarts[pnum] = *mthing;
if (!deathmatch)
AllPlayerStarts.Push(*mthing);
if (!deathmatch && !(level.flags2 & LEVEL2_RANDOMPLAYERSTARTS))
{
return P_SpawnPlayer(&playerstarts[pnum], pnum);
}
return NULL;
}