pull request #1460 - lspo_gold() 'y' parameter

Pull request by huttarl:  fix a typo in lspo_gold() which was causing
it to use the x coordinate for both x and y.

It appears to only be used for the Fort Ludios level (knox.lua) which
seems to be working as intended, so I'm not sure what is really going
on.

git decided to be a big hassle so I ended up just typing the one
character change and ignore the commit(s).  Issue #1461 is about the
same situation.

Fixes #1460
Fixes #1461
This commit is contained in:
PatR
2025-11-30 14:43:43 -08:00
parent db5d77e8be
commit 56c1048489

View File

@@ -4477,7 +4477,7 @@ lspo_gold(lua_State *L)
if (argc == 3) {
amount = luaL_checkinteger(L, 1);
x = gldx = luaL_checkinteger(L, 2);
y = gldy = luaL_checkinteger(L, 2);
y = gldy = luaL_checkinteger(L, 3);
} else if (argc == 2 && lua_type(L, 2) == LUA_TTABLE) {
amount = luaL_checkinteger(L, 1);
(void) get_coord(L, 2, &gldx, &gldy);