mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-20 00:11:19 +00:00
Line 457: Calculate input angle tolerance correctly
This commit is contained in:
parent
6bb408da08
commit
cf834f3503
2 changed files with 2 additions and 2 deletions
|
@ -7454,7 +7454,7 @@ void P_MobjThinker(mobj_t *mobj)
|
|||
|
||||
// failure state: mobj is not facing tracer
|
||||
// Reasaonable defaults: ANGLE_67h, ANGLE_292h
|
||||
if (ang >= (UINT32)mobj->extravalue1 && ang <= ANGLE_MAX - (UINT32)mobj->extravalue1)
|
||||
if (ang >= (angle_t)mobj->extravalue1 && ang <= ANGLE_MAX - (angle_t)mobj->extravalue1)
|
||||
{
|
||||
if (mobj->cvmem)
|
||||
mobj->cvmem--;
|
||||
|
|
|
@ -3761,7 +3761,7 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
|||
case 457: // Track mobj angle to point
|
||||
if (mo)
|
||||
{
|
||||
INT32 failureangle = min(max(abs(sides[line->sidenum[0]].textureoffset>>FRACBITS), 0), 360) * ANG1;
|
||||
INT32 failureangle = FixedAngle((min(max(abs(sides[line->sidenum[0]].textureoffset>>FRACBITS), 0), 360))*FRACUNIT);
|
||||
INT32 failuredelay = abs(sides[line->sidenum[0]].rowoffset>>FRACBITS);
|
||||
INT32 failureexectag = line->sidenum[1] != 0xffff ?
|
||||
(INT32)(sides[line->sidenum[1]].textureoffset>>FRACBITS) : 0;
|
||||
|
|
Loading…
Reference in a new issue