- Fixed: The onlyspawnpos handling in P_FindFloorCeiling would fail to adjust an actor's floorz

(and related) to a 3D midtex beneath its Z if it also touched a 3D midtex above its Z.

SVN r3548 (trunk)
This commit is contained in:
Randy Heit 2012-04-10 03:18:04 +00:00
commit da21075480
5 changed files with 19 additions and 14 deletions

View file

@ -256,7 +256,7 @@ bool P_GetMidTexturePosition(const line_t *line, int sideno, fixed_t *ptextop, f
//
//============================================================================
bool P_LineOpening_3dMidtex(AActor *thing, const line_t *linedef, FLineOpening &open)
bool P_LineOpening_3dMidtex(AActor *thing, const line_t *linedef, FLineOpening &open, bool restrict)
{
fixed_t tt, tb;
@ -273,7 +273,7 @@ bool P_LineOpening_3dMidtex(AActor *thing, const line_t *linedef, FLineOpening &
}
else
{
if (tt > open.bottom)
if (tt > open.bottom && (!restrict || thing->z >= tt))
{
open.bottom = tt;
open.abovemidtex = true;