MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / stepWeatherLevel

Function stepWeatherLevel

src/openrct2/world/Weather.cpp:328–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326 }
327
328 static int8_t stepWeatherLevel(int8_t currentWeatherLevel, int8_t nextWeatherLevel)
329 {
330 if (nextWeatherLevel > currentWeatherLevel)
331 {
332 return currentWeatherLevel + 1;
333 }
334
335 return currentWeatherLevel - 1;
336 }
337
338 /**
339 * Calculates future weather development.

Callers 1

updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected