0x00496A84
| 126 | |
| 127 | // 0x00496A84 |
| 128 | void updateSnowLine(int32_t currentDayOfYear) |
| 129 | { |
| 130 | auto* climateObj = ObjectManager::get<ClimateObject>(); |
| 131 | if (climateObj == nullptr) |
| 132 | { |
| 133 | return; |
| 134 | } |
| 135 | |
| 136 | updateSeason(currentDayOfYear, climateObj); |
| 137 | |
| 138 | if (getCurrentSeason() == Season::winter) |
| 139 | { |
| 140 | if (getCurrentSnowLine() != climateObj->winterSnowLine) |
| 141 | { |
| 142 | setCurrentSnowLine(getCurrentSnowLine() - 1); |
| 143 | } |
| 144 | } |
| 145 | else |
| 146 | { |
| 147 | if (getCurrentSnowLine() != climateObj->summerSnowLine) |
| 148 | { |
| 149 | setCurrentSnowLine(getCurrentSnowLine() + 1); |
| 150 | } |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | // 0x00525FB4 |
| 155 | World::SmallZ getCurrentSnowLine() |
no test coverage detected