mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-29 05:41:02 +00:00
Fix accidental copy+paste of o to d and normal in slope_get code
This commit is contained in:
parent
b0cbc8ab2a
commit
b3d842e859
1 changed files with 4 additions and 4 deletions
|
@ -1213,9 +1213,9 @@ static int slope_get(lua_State *L)
|
||||||
return 1;
|
return 1;
|
||||||
case slope_d: // d
|
case slope_d: // d
|
||||||
lua_createtable(L, 0, 2);
|
lua_createtable(L, 0, 2);
|
||||||
lua_pushfixed(L, slope->o.x);
|
lua_pushfixed(L, slope->d.x);
|
||||||
lua_setfield(L, -2, "x");
|
lua_setfield(L, -2, "x");
|
||||||
lua_pushfixed(L, slope->o.y);
|
lua_pushfixed(L, slope->d.y);
|
||||||
lua_setfield(L, -2, "y");
|
lua_setfield(L, -2, "y");
|
||||||
return 1;
|
return 1;
|
||||||
case slope_zdelta: // zdelta
|
case slope_zdelta: // zdelta
|
||||||
|
@ -1223,9 +1223,9 @@ static int slope_get(lua_State *L)
|
||||||
return 1;
|
return 1;
|
||||||
case slope_normal: // normal
|
case slope_normal: // normal
|
||||||
lua_createtable(L, 0, 2);
|
lua_createtable(L, 0, 2);
|
||||||
lua_pushfixed(L, slope->o.x);
|
lua_pushfixed(L, slope->normal.x);
|
||||||
lua_setfield(L, -2, "x");
|
lua_setfield(L, -2, "x");
|
||||||
lua_pushfixed(L, slope->o.y);
|
lua_pushfixed(L, slope->normal.y);
|
||||||
lua_setfield(L, -2, "y");
|
lua_setfield(L, -2, "y");
|
||||||
return 1;
|
return 1;
|
||||||
case slope_zangle: // zangle
|
case slope_zangle: // zangle
|
||||||
|
|
Loading…
Reference in a new issue