From 6e3d784c507864fe6a7c1d54b3b130b516c59e47 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 7 Feb 2013 21:09:55 +0000 Subject: [PATCH] - Fixed: G_CheckSpot() should not use the player start's z position unless LEVEL_USEPLAYERSTARTZ is set. SVN r4070 (trunk) --- src/g_game.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/g_game.cpp b/src/g_game.cpp index fd8489f9a..48c4a3b7a 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -1385,6 +1385,10 @@ bool G_CheckSpot (int playernum, FPlayerStart *mthing) y = mthing->y; z = mthing->z; + if (!(level.flags & LEVEL_USEPLAYERSTARTZ)) + { + z = 0; + } z += P_PointInSector (x, y)->floorplane.ZatPoint (x, y); if (!players[playernum].mo)