- Fixed: G_CheckSpot() should not use the player start's z position unless LEVEL_USEPLAYERSTARTZ is set.

SVN r4070 (trunk)
This commit is contained in:
Randy Heit 2013-02-07 21:09:55 +00:00
parent c116453158
commit 6e3d784c50
1 changed files with 4 additions and 0 deletions

View File

@ -1385,6 +1385,10 @@ bool G_CheckSpot (int playernum, FPlayerStart *mthing)
y = mthing->y; y = mthing->y;
z = mthing->z; z = mthing->z;
if (!(level.flags & LEVEL_USEPLAYERSTARTZ))
{
z = 0;
}
z += P_PointInSector (x, y)->floorplane.ZatPoint (x, y); z += P_PointInSector (x, y)->floorplane.ZatPoint (x, y);
if (!players[playernum].mo) if (!players[playernum].mo)