mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-02 09:12:54 +00:00
More breakage
This commit is contained in:
parent
d87f2565f1
commit
c98497e6c5
2 changed files with 1 additions and 26 deletions
25
src/p_map.c
25
src/p_map.c
|
@ -3424,31 +3424,6 @@ boolean P_CheckMoveBlocked(line_t *li, mobj_t *mo)
|
|||
return true;
|
||||
}
|
||||
|
||||
if (!(mo->flags & MF_MISSILE))
|
||||
{
|
||||
if (li->flags & ML_IMPASSIBLE)
|
||||
return false;
|
||||
|
||||
if ((mo->flags & (MF_ENEMY|MF_BOSS)) && li->flags & ML_BLOCKMONSTERS)
|
||||
return false;
|
||||
}
|
||||
|
||||
// set openrange, opentop, openbottom
|
||||
P_LineOpening(li, mo);
|
||||
|
||||
if (openrange < mo->height)
|
||||
return false; // doesn't fit
|
||||
|
||||
if (opentop - mo->z < mo->height)
|
||||
return false; // mobj is too high
|
||||
|
||||
if (openbottom - mo->z > FixedMul(MAXSTEPMOVE, mo->scale))
|
||||
return false; // too big a step up
|
||||
|
||||
// this line doesn't block movement
|
||||
return true;
|
||||
}
|
||||
|
||||
//
|
||||
// PTR_SlideTraverse
|
||||
//
|
||||
|
|
|
@ -60,7 +60,7 @@ extern pslope_t *opentopslope, *openbottomslope;
|
|||
#endif
|
||||
extern ffloor_t *openfloorrover, *openceilingrover;
|
||||
|
||||
void P_LineOpening(line_t *plinedef, mobj_t *mobj);
|
||||
void P_LineOpening(line_t *linedef, mobj_t *mobj);
|
||||
|
||||
boolean P_BlockLinesIterator(INT32 x, INT32 y, boolean(*func)(line_t *));
|
||||
boolean P_BlockThingsIterator(INT32 x, INT32 y, boolean(*func)(mobj_t *));
|
||||
|
|
Loading…
Reference in a new issue