Sets the state of the rain to on or off, plus sets the intensity of the rain (0 to 1)
| 282 | |
| 283 | // Sets the state of the rain to on or off, plus sets the intensity of the rain (0 to 1) |
| 284 | void SetRainState(int on, float intensity) { |
| 285 | if (on) { |
| 286 | Weather.flags |= WEATHER_FLAGS_RAIN; |
| 287 | Weather.rain_intensity_scalar = intensity; |
| 288 | } else { |
| 289 | Weather.flags &= ~WEATHER_FLAGS_RAIN; |
| 290 | } |
| 291 | } |
| 292 | |
| 293 | // Sets the state of the rain to on or off, plus sets the intensity of the rain (0 to 1) |
| 294 | void SetSnowState(int on, float intensity) { |
no outgoing calls
no test coverage detected