forked from rosebudai/OpenRCT2-Web
Use patterns from climate objects instead of hardcoded internals
This commit is contained in:
1 parent
41b07b8904
commit
c7e364c8dd
4 files changed
+35
-73
No files matched your search
@@ -57,6 +57,11 @@ void ClimateObject::ReadJson(IReadObjectContext* context, json_t& root)
|
||||
_climate = convertRawClimate(rawClimate);
|
||||
}
|
||||
|
||||
const WeatherPattern& ClimateObject::getPatternForMonth(uint8_t month)
|
||||
{
|
||||
return _climate[month];
|
||||
}
|
||||
|
||||
static Climate convertRawClimate(const RawClimate& rawClimate)
|
||||
{
|
||||
Climate climate{};
|
||||
|
||||
Reference in new issue
Block a user