Make Weather::isDry signature match others (#26161)

This commit is contained in:
matheusvb3 authored and GitHub committed 2026-03-08 19:10:22 +01:00
1 parent be84cdb1bb
commit dc63ff115f
3 files changed
+8 -8

No files matched your search

+1 -2
View File
@@ -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;
+6 -5
View File
@@ -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;
+1 -1
View File
@@ -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);