little improvements

This commit is contained in:
2025-12-24 15:45:09 +01:00
parent cb451114f7
commit 7951590d98
2 changed files with 7 additions and 18 deletions
-7
View File
@@ -256,10 +256,3 @@ function set_rds_udg(xy, groups) end
---@param xy boolean
---@param groups table Table of tables, this should be up to 8 tables containing 4 integers
function set_rds_udg2(xy, groups) end
---Registers an ODA to be used in the O of the group sequence
---@param group integer
---@param group_version boolean
---@param id integer
---@param id_data integer
function register_oda(group, group_version, id, id_data) end
+1 -5
View File
@@ -540,17 +540,13 @@ void run_lua(char *str, char *cmd_output) {
const char *res = lua_tostring(L, -1);
strcpy(cmd_output, res);
}
lua_pop(L, 1);
} else {
fprintf(stderr, "Lua error: %s\n", lua_tostring(L, -1));
lua_pop(L, 1);
}
} else if (lua_isstring(L, -1)) {
if (cmd_output) strcpy(cmd_output, lua_tostring(L, -1));
lua_pop(L, 1);
} else {
lua_pop(L, 1);
}
lua_pop(L, 1);
}
void lua_group(RDSGroup* group) {