1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 02:35:46 +01:00

Move function out of C extern

This commit is contained in:
Ted John
2018-01-12 22:53:41 +00:00
committed by Richard Jenkins
parent 9afbfe02ab
commit ca7f9dec8e
4 changed files with 14 additions and 16 deletions

View File

@@ -208,17 +208,6 @@ extern "C"
climate_update_rain_sound();
climate_update_thunder_sound();
}
FILTER_PALETTE_ID climate_get_weather_gloom_palette_id(const ClimateState * state)
{
auto paletteId = PALETTE_NULL;
auto gloom = state->WeatherGloom;
if (gloom < Util::CountOf(ClimateWeatherGloomColours))
{
paletteId = ClimateWeatherGloomColours[gloom];
}
return paletteId;
}
}
bool climate_is_raining()
@@ -226,6 +215,17 @@ bool climate_is_raining()
return gClimateCurrent.RainLevel != RAIN_LEVEL_NONE;
}
FILTER_PALETTE_ID climate_get_weather_gloom_palette_id(const ClimateState &state)
{
auto paletteId = PALETTE_NULL;
auto gloom = state.WeatherGloom;
if (gloom < Util::CountOf(ClimateWeatherGloomColours))
{
paletteId = ClimateWeatherGloomColours[gloom];
}
return paletteId;
}
uint32 climate_get_weather_sprite_id(const ClimateState &state)
{
uint32 spriteId = SPR_WEATHER_SUN;