Another bugfix

This commit is contained in:
MascaraSnake 2019-06-15 00:12:58 +02:00
parent cc9d7bee80
commit 981443c826

View file

@ -9927,7 +9927,7 @@ static mobj_t *P_LookForRails(mobj_t* mobj, fixed_t c, fixed_t s, angle_t target
mobj_t *snax = P_GetAxis(sides[lines[lline].sidenum[0]].textureoffset >> FRACBITS);
if (!snax)
return NULL;
P_GetAxisPosition(x, y, snax, &ny, &nx, &nang, &dummy);
P_GetAxisPosition(x, y, snax, &nx, &ny, &nang, &dummy);
angdiff = nang - targetangle;
if (angdiff < ANG10/2 || angdiff > ANGLE_MAX - ANG10/2)
{