mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't quake tilt if just going backward
THIS IS A HACK FOR WHEN ANGLE IS 90 DEGREES
This commit is contained in:
parent
85afc1ed5a
commit
006c6e1e75
1 changed files with 5 additions and 0 deletions
|
|
@ -4183,6 +4183,11 @@ Quaketilt (player_t *player)
|
||||||
player->kartstuff[k_drift] == 0
|
player->kartstuff[k_drift] == 0
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (delta == (INT32)ANGLE_180)/* FUCK YOU HAVE A HACK */
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// Hi! I'm "not a math guy"!
|
// Hi! I'm "not a math guy"!
|
||||||
if (abs(delta) > ANGLE_90)
|
if (abs(delta) > ANGLE_90)
|
||||||
delta = (INT32)(( moma + ANGLE_180 ) - player->mo->angle );
|
delta = (INT32)(( moma + ANGLE_180 ) - player->mo->angle );
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue