mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-16 14:41:08 +00:00
zangle should be shifted down by ANGLETOFINESHIFT if we're to use FINETANGENT on it
This commit is contained in:
parent
4edeeb6953
commit
9296aaa28c
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…
Reference in a new issue