mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-29 05:41:02 +00:00
slope->normal is vector3_t, not vector2_t
This commit is contained in:
parent
b3d842e859
commit
ad0069676a
1 changed files with 3 additions and 1 deletions
|
@ -1222,11 +1222,13 @@ static int slope_get(lua_State *L)
|
||||||
lua_pushfixed(L, slope->zdelta);
|
lua_pushfixed(L, slope->zdelta);
|
||||||
return 1;
|
return 1;
|
||||||
case slope_normal: // normal
|
case slope_normal: // normal
|
||||||
lua_createtable(L, 0, 2);
|
lua_createtable(L, 0, 3);
|
||||||
lua_pushfixed(L, slope->normal.x);
|
lua_pushfixed(L, slope->normal.x);
|
||||||
lua_setfield(L, -2, "x");
|
lua_setfield(L, -2, "x");
|
||||||
lua_pushfixed(L, slope->normal.y);
|
lua_pushfixed(L, slope->normal.y);
|
||||||
lua_setfield(L, -2, "y");
|
lua_setfield(L, -2, "y");
|
||||||
|
lua_pushfixed(L, slope->normal.z);
|
||||||
|
lua_setfield(L, -2, "z");
|
||||||
return 1;
|
return 1;
|
||||||
case slope_zangle: // zangle
|
case slope_zangle: // zangle
|
||||||
lua_pushangle(L, slope->zangle);
|
lua_pushangle(L, slope->zangle);
|
||||||
|
|
Loading…
Reference in a new issue