mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
zangle should be shifted down by ANGLETOFINESHIFT if we're to use FINETANGENT on it
This commit is contained in:
parent
685c8312cb
commit
2ccf0967c9
1 changed files with 1 additions and 1 deletions
|
|
@ -1344,7 +1344,7 @@ static int slope_set(lua_State *L)
|
||||||
}
|
}
|
||||||
case slope_zangle: // zangle
|
case slope_zangle: // zangle
|
||||||
slope->zangle = luaL_checkangle(L, 3);
|
slope->zangle = luaL_checkangle(L, 3);
|
||||||
slope->zdelta = FINETANGENT(slope->zangle);
|
slope->zdelta = FINETANGENT(slope->zangle>>ANGLETOFINESHIFT);
|
||||||
P_CalculateSlopeNormal(slope);
|
P_CalculateSlopeNormal(slope);
|
||||||
break;
|
break;
|
||||||
case slope_xydirection: // xydirection
|
case slope_xydirection: // xydirection
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue