Skip to content

Commit

Permalink
Fixed: "Gun-Triggered Switches Inactive in PWADs" (see here http://so…
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed Sep 3, 2009
1 parent 58c0dc0 commit 2fdb765
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions doomsday/plugins/common/src/p_map.c
Expand Up @@ -1560,17 +1560,15 @@ boolean PTR_ShootTraverse(intercept_t* in)
frontSec = P_GetPtrp(li, DMU_FRONT_SECTOR);
backSec = P_GetPtrp(li, DMU_BACK_SECTOR);

if(!frontSec || !backSec)
{
if(P_PointOnLinedefSide(tracePos[VX], tracePos[VY], li))
return true; // Continue traversal.

goto hitline;
}
if(!backSec && P_PointOnLinedefSide(tracePos[VX], tracePos[VY], li))
return true; // Continue traversal.

if(xline->special)
P_ActivateLine(li, shootThing, 0, SPAC_IMPACT);

if(!backSec)
goto hitline;

#if __JDOOM64__
if(xline->flags & ML_BLOCKALL) // jd64
goto hitline;
Expand Down

0 comments on commit 2fdb765

Please sign in to comment.