MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / SetSnowState

Function SetSnowState

Descent3/weather.cpp:294–301  ·  view source on GitHub ↗

Sets the state of the rain to on or off, plus sets the intensity of the rain (0 to 1)

Source from the content-addressed store, hash-verified

292
293// Sets the state of the rain to on or off, plus sets the intensity of the rain (0 to 1)
294void SetSnowState(int on, float intensity) {
295 if (on) {
296 Weather.flags |= WEATHER_FLAGS_SNOW;
297 Weather.snow_intensity_scalar = intensity;
298 } else {
299 Weather.flags &= ~WEATHER_FLAGS_SNOW;
300 }
301}
302
303// Sets the state of lightning to on or off, plus allows the setting of how often to check
304// for lightning and the randomness at which lightning happens

Callers 1

msafe_CallFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected