forked from rosebudai/OpenRCT2-Web
Make Weather::isDry signature match others (#26161)
This commit is contained in:
1 parent
be84cdb1bb
commit
dc63ff115f
3 files changed
+8
-8
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user