diff --git a/autogen/lua_definitions/functions.lua b/autogen/lua_definitions/functions.lua index 1c726fe8a..aefa2322e 100644 --- a/autogen/lua_definitions/functions.lua +++ b/autogen/lua_definitions/functions.lua @@ -9763,7 +9763,7 @@ function set_fog_intensity(intensity) -- ... end ---- @return SkyBackgroundParams +--- @return integer --- Gets the current skybox function get_skybox() -- ... diff --git a/docs/lua/functions-6.md b/docs/lua/functions-6.md index 4198ccaa2..ad3622094 100644 --- a/docs/lua/functions-6.md +++ b/docs/lua/functions-6.md @@ -1709,16 +1709,16 @@ Sets the intensity of the fog (this value scales very quickly, 1.0 to 1.1 is a d Gets the current skybox ### Lua Example -`local enumValue = get_skybox()` +`local integerValue = get_skybox()` ### Parameters - None ### Returns -[enum SkyBackgroundParams](constants.md#enum-SkyBackgroundParams) +- `integer` ### C Prototype -`enum SkyBackgroundParams get_skybox(void);` +`s8 get_skybox(void);` [:arrow_up_small:](#) diff --git a/src/pc/lua/utils/smlua_gfx_utils.c b/src/pc/lua/utils/smlua_gfx_utils.c index 15cd31d25..1740e0744 100644 --- a/src/pc/lua/utils/smlua_gfx_utils.c +++ b/src/pc/lua/utils/smlua_gfx_utils.c @@ -87,7 +87,7 @@ void set_fog_intensity(f32 intensity) { /// -enum SkyBackgroundParams get_skybox(void) { +s8 get_skybox(void) { if (gOverrideBackground != -1) { return gOverrideBackground; } return gReadOnlyBackground; } diff --git a/src/pc/lua/utils/smlua_gfx_utils.h b/src/pc/lua/utils/smlua_gfx_utils.h index 52d80a5fb..9de8ba416 100644 --- a/src/pc/lua/utils/smlua_gfx_utils.h +++ b/src/pc/lua/utils/smlua_gfx_utils.h @@ -48,7 +48,7 @@ f32 get_fog_intensity(void); void set_fog_intensity(f32 intensity); /* |description|Gets the current skybox|descriptionEnd| */ -enum SkyBackgroundParams get_skybox(void); +s8 get_skybox(void); /* |description|Sets the override skybox|descriptionEnd| */ void set_override_skybox(s8 background); /* |description|Gets a value of the global skybox color|descriptionEnd| */