From 56c10484898ea3250733ffd37e13ee2ced2f5785 Mon Sep 17 00:00:00 2001 From: PatR Date: Sun, 30 Nov 2025 14:43:43 -0800 Subject: [PATCH] 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 --- src/sp_lev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sp_lev.c b/src/sp_lev.c index 3bccc196c..21357eada 100644 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -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);