mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
You can now jump onto tracks that are running antiparallel to yours
This commit is contained in:
parent
e74447b0d3
commit
75afe898f3
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)
|
if (!snax)
|
||||||
return NULL;
|
return NULL;
|
||||||
P_GetAxisPosition(x, y, snax, &nx, &ny, &nang, &dummy);
|
P_GetAxisPosition(x, y, snax, &nx, &ny, &nang, &dummy);
|
||||||
angdiff = nang - targetangle;
|
angdiff = ((nang - targetangle) + ANG10/2) & ~ANGLE_180;
|
||||||
if (angdiff < ANG10/2 || angdiff > ANGLE_MAX - ANG10/2)
|
//Axes must be directly parallel or antiparallel, give or take 5 degrees.
|
||||||
|
if (angdiff < ANG10)
|
||||||
{
|
{
|
||||||
mark = P_SpawnMobj(nx, ny, nz, mobj->info->raisestate);
|
mark = P_SpawnMobj(nx, ny, nz, mobj->info->raisestate);
|
||||||
return mark;
|
return mark;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue