- Fixed coordinate checks for objects on 3DMidtex lines.

SVN r978 (trunk)
This commit is contained in:
Christoph Oelckers 2008-05-17 17:57:50 +00:00
commit 7949f6d35f
3 changed files with 22 additions and 3 deletions

View file

@ -1758,7 +1758,12 @@ explode:
|| mo->momy > FRACUNIT/4 || mo->momy < -FRACUNIT/4)
{
if (mo->floorz > mo->Sector->floorplane.ZatPoint (mo->x, mo->y))
return;
{
if (mo->dropoffz != mo->floorz) // 3DMidtex or other special cases that must be excluded
{
return;
}
}
}
}
@ -4029,6 +4034,7 @@ AActor *P_SpawnMapThing (FMapThing *mthing, int position)
mobj->SpawnPoint[2] = mthing->z;
mobj->SpawnAngle = mthing->angle;
mobj->SpawnFlags = mthing->flags;
P_FindFloorCeiling(mobj, true);
if (!(mobj->flags2 & MF2_ARGSDEFINED))
{