diff --git a/autogen/lua_definitions/functions.lua b/autogen/lua_definitions/functions.lua index b8e0db719..f0b455c1c 100644 --- a/autogen/lua_definitions/functions.lua +++ b/autogen/lua_definitions/functions.lua @@ -5230,7 +5230,7 @@ function pressed_pause() -- ... end ---- @param arg integer +--- @param arg SpecialWarpDestinations --- @param color integer --- Fades into a special warp with `arg` and using `color` function fade_into_special_warp(arg, color) diff --git a/docs/lua/functions-3.md b/docs/lua/functions-3.md index 9a2f7202f..edef0a319 100644 --- a/docs/lua/functions-3.md +++ b/docs/lua/functions-3.md @@ -6994,14 +6994,14 @@ Fades into a special warp with `arg` and using `color` ### Parameters | Field | Type | | ----- | ---- | -| arg | `integer` | +| arg | [enum SpecialWarpDestinations](constants.md#enum-SpecialWarpDestinations) | | color | `integer` | ### Returns - None ### C Prototype -`void fade_into_special_warp(u32 arg, u32 color);` +`void fade_into_special_warp(enum SpecialWarpDestinations arg, u32 color);` [:arrow_up_small:](#) diff --git a/src/game/level_update.c b/src/game/level_update.c index 73718ded5..08853b343 100644 --- a/src/game/level_update.c +++ b/src/game/level_update.c @@ -277,7 +277,7 @@ void warp_special(enum SpecialWarpDestinations arg) { sSpecialWarpDest = arg; } -void fade_into_special_warp(u32 arg, u32 color) { +void fade_into_special_warp(enum SpecialWarpDestinations arg, u32 color) { if (color != 0) { color = 0xFF; } diff --git a/src/game/level_update.h b/src/game/level_update.h index 0315bc05c..ce62bc733 100644 --- a/src/game/level_update.h +++ b/src/game/level_update.h @@ -183,7 +183,7 @@ u16 level_control_timer(s32 timerOp); /* |description|Checks if the start button has been pressed as well as some other conditions for opening the pause menu depending on if pause anywhere is enabled|descriptionEnd|*/ bool pressed_pause(void); /* |description|Fades into a special warp with `arg` and using `color`|descriptionEnd| */ -void fade_into_special_warp(u32 arg, u32 color); +void fade_into_special_warp(enum SpecialWarpDestinations arg, u32 color); void load_level_init_text(u32 arg); void warp_credits(void); /* |description|Gets an instant warp from the current area's instant warp array (0-3)|descriptionEnd| */ diff --git a/src/pc/lua/smlua_functions_autogen.c b/src/pc/lua/smlua_functions_autogen.c index 2cd3091a8..1403695fb 100644 --- a/src/pc/lua/smlua_functions_autogen.c +++ b/src/pc/lua/smlua_functions_autogen.c @@ -15408,7 +15408,7 @@ int smlua_func_fade_into_special_warp(lua_State* L) { return 0; } - u32 arg = smlua_to_integer(L, 1); + int arg = smlua_to_integer(L, 1); if (!gSmLuaConvertSuccess) { LOG_LUA("Failed to convert parameter %u for function '%s'", 1, "fade_into_special_warp"); return 0; } u32 color = smlua_to_integer(L, 2); if (!gSmLuaConvertSuccess) { LOG_LUA("Failed to convert parameter %u for function '%s'", 2, "fade_into_special_warp"); return 0; }