zangle should be shifted down by ANGLETOFINESHIFT if we're to use FINETANGENT on it

This commit is contained in:
Monster Iestyn 2018-10-20 23:36:06 +01:00
parent 4edeeb6953
commit 9296aaa28c
1 changed files with 1 additions and 1 deletions

View File

@ -1344,7 +1344,7 @@ static int slope_set(lua_State *L)
}
case slope_zangle: // zangle
slope->zangle = luaL_checkangle(L, 3);
slope->zdelta = FINETANGENT(slope->zangle);
slope->zdelta = FINETANGENT(slope->zangle>>ANGLETOFINESHIFT);
P_CalculateSlopeNormal(slope);
break;
case slope_xydirection: // xydirection