diff --git a/src/openrct2/world/Scenery.cpp b/src/openrct2/world/Scenery.cpp index 70367cdf11..3766630ce3 100644 --- a/src/openrct2/world/Scenery.cpp +++ b/src/openrct2/world/Scenery.cpp @@ -183,8 +183,7 @@ void SmallSceneryElement::UpdateAge(const CoordsXY& sceneryPos) return; } - if (!sceneryEntry->HasFlag(SMALL_SCENERY_FLAG_CAN_BE_WATERED) || Weather::isDry(gameState.weatherCurrent.weatherType) - || GetAge() < 5) + if (!sceneryEntry->HasFlag(SMALL_SCENERY_FLAG_CAN_BE_WATERED) || Weather::isDry() || GetAge() < 5) { IncreaseAge(sceneryPos); return; diff --git a/src/openrct2/world/Weather.cpp b/src/openrct2/world/Weather.cpp index 8fd17ea512..6cb72b19c0 100644 --- a/src/openrct2/world/Weather.cpp +++ b/src/openrct2/world/Weather.cpp @@ -267,6 +267,12 @@ namespace OpenRCT2::Weather updateThunderSound(); } + bool isDry() + { + auto& weather = getGameState().weatherCurrent.weatherType; + return weather == Type::Sunny || weather == Type::PartiallyCloudy || weather == Type::Cloudy; + } + bool isRaining() { auto& weather = getGameState().weatherCurrent.weatherType; @@ -296,11 +302,6 @@ namespace OpenRCT2::Weather return isRaining() || isSnowingHeavily(); } - bool isDry(Type weather) - { - return weather == Type::Sunny || weather == Type::PartiallyCloudy || weather == Type::Cloudy; - } - bool hasWeatherEffect() { const auto& weatherCurrent = getGameState().weatherCurrent; diff --git a/src/openrct2/world/Weather.h b/src/openrct2/world/Weather.h index 121e686e93..17bd9f3674 100644 --- a/src/openrct2/world/Weather.h +++ b/src/openrct2/world/Weather.h @@ -92,12 +92,12 @@ namespace OpenRCT2::Weather void stopWeatherSound(); void forceWeather(Type weather); + bool isDry(); bool isRaining(); bool isTransitioningToSnow(); bool isSnowing(); bool isSnowingHeavily(); bool isPrecipitating(); - bool isDry(Type); bool hasWeatherEffect(); Drawing::FilterPaletteID getWeatherGloomPaletteId(const State& state); uint32_t getWeatherSpriteId(Type weatherType);