diff --git a/output.bin b/output.bin index 75894eb..08b7e33 100644 Binary files a/output.bin and b/output.bin differ diff --git a/src/lua.cpp b/src/lua.cpp index d0b9574..4d458f5 100644 --- a/src/lua.cpp +++ b/src/lua.cpp @@ -45,9 +45,11 @@ static int gameobjectSetPosition(psyqo::Lua L) { psyqo::FixedPoint<> x(L.toNumber(3), psyqo::FixedPoint<>::RAW); go->position.x = x; L.pop(); + L.getField(2, "y"); psyqo::FixedPoint<> y(L.toNumber(3), psyqo::FixedPoint<>::RAW); go->position.y = y; L.pop(); + L.getField(2, "z"); psyqo::FixedPoint<> z(L.toNumber(3), psyqo::FixedPoint<>::RAW); go->position.z = z; L.pop(); @@ -156,7 +158,7 @@ void psxsplash::Lua::CallOnCollide(GameObject* self, GameObject* other) { PushGameObject(self); PushGameObject(other); - if (L.pcall(2, 0, errfunc) != LUA_OK) { + if (L.pcall(2, 0) != LUA_OK) { printf("Lua error: %s\n", L.toString(-1)); L.pop(); } diff --git a/third_party/nugget b/third_party/nugget index c188767..7ed81a1 160000 --- a/third_party/nugget +++ b/third_party/nugget @@ -1 +1 @@ -Subproject commit c18876727ccd22f60093e779ae8a67047c956549 +Subproject commit 7ed81a19ce8221cd42c0d45d1b737953088bd147