mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-26 03:51:46 +00:00
Fix compilation warnings
This commit is contained in:
parent
ff29d848e2
commit
cc9348c71c
3 changed files with 2 additions and 16 deletions
|
|
@ -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 = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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); \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue