From 22a0c92ab87666642c1cdc0337fb9c0d6b075a47 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 8 Apr 2012 20:01:43 +0000 Subject: [PATCH] - Fixed crash when teleporting. P_TeleportMove() must not pass FFCF_ONLYSPAWNPOS to P_GetFloorCeilingZ(). I got confused because its bool parameter's meaning had been the opposite of P_FindFloorCeiling()'s bool parameter before they got changed to flags. SVN r3543 (trunk) --- src/p_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_map.cpp b/src/p_map.cpp index 068f01688..90a20b5d8 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -324,7 +324,7 @@ bool P_TeleportMove (AActor *thing, fixed_t x, fixed_t y, fixed_t z, bool telefr tmf.z = z; tmf.touchmidtex = false; tmf.abovemidtex = false; - P_GetFloorCeilingZ(tmf, FFCF_ONLYSPAWNPOS); + P_GetFloorCeilingZ(tmf, 0); spechit.Clear ();