diff --git a/autogen/lua_definitions/manual.lua b/autogen/lua_definitions/manual.lua index ca8f26231..f8ffbe616 100644 --- a/autogen/lua_definitions/manual.lua +++ b/autogen/lua_definitions/manual.lua @@ -17,15 +17,12 @@ gNetworkPlayers = {} --- @type Mod[] --- Array of all mods loaded, starting from 0 --- - All mods are loaded in the same order for every player ---- - Index 0 is the first mod in the list (The top of the mod list) +--- - Index 0 is the first mod in the list (the top of the mod list) gActiveMods = {} --- @type Character[] gCharacters = {} ---- @type PlayerPalette[] -gPalettePresets = {} - --- @type GlobalTextures gTextures = {} diff --git a/src/pc/djui/djui_console.c b/src/pc/djui/djui_console.c index 342d35462..fd93e001f 100644 --- a/src/pc/djui/djui_console.c +++ b/src/pc/djui/djui_console.c @@ -19,7 +19,7 @@ struct ConsoleQueuedMessage { struct ConsoleQueuedMessage* sConsoleQueuedMessages = NULL; -static void djui_console_message_queue(char* message) { +static void djui_console_message_queue(const char* message) { struct ConsoleQueuedMessage* queued = malloc(sizeof(struct ConsoleQueuedMessage)); queued->message = strdup(message); queued->next = NULL; diff --git a/src/pc/lua/smlua_cobject.c b/src/pc/lua/smlua_cobject.c index ef80c2656..3d66a4511 100644 --- a/src/pc/lua/smlua_cobject.c +++ b/src/pc/lua/smlua_cobject.c @@ -603,17 +603,6 @@ void smlua_cobject_init_globals(void) { lua_setglobal(L, "gCharacters"); } - { - lua_newtable(L); - int t = lua_gettop(gLuaState); - for (s32 i = 0; i < PALETTE_PRESET_MAX; i++) { - lua_pushinteger(L, i); - smlua_push_object(L, LOT_PLAYERPALETTE, &gPalettePresets[i]); - lua_settable(L, t); - } - lua_setglobal(L, "gPalettePresets"); - } - #define EXPOSE_GLOBAL(lot, ptr) \ { \ smlua_push_object(L, lot, &ptr); \