1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00

Merge pull request #4302 from wolfreak99/render_rain_toggle

Add option to disable weather gloom and rain effects
This commit is contained in:
Michael Steenbeek
2016-09-24 13:17:49 +02:00
committed by GitHub
10 changed files with 67 additions and 20 deletions

View File

@@ -777,13 +777,28 @@ void viewport_paint(rct_viewport* viewport, rct_drawpixelinfo* dpi, int left, in
paint_quadrant_ps();
int weather_colour = WeatherColours[gClimateCurrentWeatherGloom];
if ((weather_colour != -1) && (!(gCurrentViewportFlags & VIEWPORT_FLAG_INVISIBLE_SPRITES)) && !gTrackDesignSaveMode) {
gfx_fill_rect(dpi2, dpi2->x, dpi2->y, dpi2->width + dpi2->x - 1, dpi2->height + dpi2->y - 1, weather_colour);
if (
(weather_colour != -1)
&& (!(gCurrentViewportFlags & VIEWPORT_FLAG_INVISIBLE_SPRITES))
&& (!gTrackDesignSaveMode)
&& (gConfigGeneral.render_weather_gloom)
) {
gfx_fill_rect(
dpi2,
dpi2->x,
dpi2->y,
dpi2->width + dpi2->x - 1,
dpi2->height + dpi2->y - 1,
weather_colour
);
}
viewport_draw_money_effects();
}
}
/**
*
* rct2: 0x0068958D