mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-20 19:02:34 +00:00
You can now jump onto tracks that are running antiparallel to yours
This commit is contained in:
parent
cede95fc21
commit
943ddeeabf
1 changed files with 3 additions and 2 deletions
|
@ -9930,8 +9930,9 @@ static mobj_t *P_LookForRails(mobj_t* mobj, fixed_t c, fixed_t s, angle_t target
|
|||
if (!snax)
|
||||
return NULL;
|
||||
P_GetAxisPosition(x, y, snax, &nx, &ny, &nang, &dummy);
|
||||
angdiff = nang - targetangle;
|
||||
if (angdiff < ANG10/2 || angdiff > ANGLE_MAX - ANG10/2)
|
||||
angdiff = ((nang - targetangle) + ANG10/2) & ~ANGLE_180;
|
||||
//Axes must be directly parallel or antiparallel, give or take 5 degrees.
|
||||
if (angdiff < ANG10)
|
||||
{
|
||||
mark = P_SpawnMobj(nx, ny, nz, mobj->info->raisestate);
|
||||
return mark;
|
||||
|
|
Loading…
Reference in a new issue