Skip to content

Commit

Permalink
- Fixed: P_CheckPosition() should checks all lines contacted by the a…
Browse files Browse the repository at this point in the history
…ctor. Stopping once it finds

  one blocking line will prevent any further lines with specials from activating their specials.

SVN r3198 (trunk)
  • Loading branch information
Randy Heit committed May 8, 2011
1 parent 0e07113 commit 44a3e94
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/p_map.cpp
Expand Up @@ -1401,15 +1401,20 @@ bool P_CheckPosition (AActor *thing, fixed_t x, fixed_t y, FCheckPosition &tm)
//bool onthing = (thingdropoffz != tmdropoffz);
tm.floorz = tm.dropoffz;

bool good = true;

while ((ld = it.Next()))
{
if (!PIT_CheckLine(ld, box, tm))
return false;
good &= PIT_CheckLine(ld, box, tm);
}
if (!good)
{
return false;
}

if (tm.ceilingz - tm.floorz < thing->height)
{
return false;

}
if (tm.touchmidtex)
{
tm.dropoffz = tm.floorz;
Expand Down

0 comments on commit 44a3e94

Please sign in to comment.