From 044bf4ada6b0bbe926b8ecc1fb92775cc805c50c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 27 Apr 2016 12:08:22 +0200 Subject: [PATCH] - fixed: P_CheckPosition must initialized tm.floorterrain. --- src/p_map.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/p_map.cpp b/src/p_map.cpp index bd442fa617..14a147d6c4 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -1526,6 +1526,7 @@ bool P_CheckPosition(AActor *thing, const DVector2 &pos, FCheckPosition &tm, boo tm.ceilingz = newsec->ceilingplane.ZatPoint(pos); tm.ceilingpic = newsec->GetTexture(sector_t::ceiling); tm.floorsector = tm.ceilingsector = newsec; + tm.floorterrain = newsec->GetTerrain(sector_t::floor); } F3DFloor* rover; @@ -1546,6 +1547,7 @@ bool P_CheckPosition(AActor *thing, const DVector2 &pos, FCheckPosition &tm, boo { tm.floorz = tm.dropoffz = ff_top; tm.floorpic = *rover->top.texture; + tm.floorterrain = rover->model->GetTerrain(rover->top.isceiling); } if (ff_bottom < tm.ceilingz && abs(delta1) >= abs(delta2)) {