mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
Fix #2607: Rain rendered incorrectly in additional viewport
This commit is contained in:
committed by
Michael Steenbeek
parent
e307d22bf9
commit
40cea0e7e7
@@ -34,6 +34,7 @@
|
||||
- Fix: [#1185] Close button colour of prompt windows does not match.
|
||||
- Fix: [#1833, #4937, #6138] 'Too low!' warning when building rides and shops on the lowest land level (original bug).
|
||||
- Fix: [#2254] Edge scrolling horizontally now has the same speed as vertical edge scrolling.
|
||||
- Fix: [#2607] Rain rendered incorrectly in additional viewport.
|
||||
- Fix: [#4760] Asia - Great Wall of China and South America - Rio Carnival have incorrect guest entry points (original bug).
|
||||
- Fix: [#4991] Inverted helices can be built on the Lay Down RC, but are not drawn.
|
||||
- Fix: [#5417] Hacked Crooked House tracked rides do not dispatch vehicles.
|
||||
|
||||
@@ -59,10 +59,10 @@ static void CallDrawRainFunc(IRainDrawer * rainDrawer,
|
||||
return;
|
||||
}
|
||||
|
||||
left = Math::Max(left, vp->x);
|
||||
right = Math::Min(right, vp->width);
|
||||
top = Math::Max(top, vp->y);
|
||||
bottom = Math::Min(bottom, vp->height);
|
||||
left = Math::Max<sint16>(left, vp->x);
|
||||
right = Math::Min<sint16>(right, vp->x + vp->width);
|
||||
top = Math::Max<sint16>(top, vp->y);
|
||||
bottom = Math::Min<sint16>(bottom, vp->y + vp->height);
|
||||
if (left >= right || top >= bottom)
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user