mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 18:31:59 -05:00
Fix #11679: Facilities clipping issues
This commit is contained in:
parent
f41e395d0a
commit
c9b6292b88
2 changed files with 4 additions and 3 deletions
|
@ -9,6 +9,7 @@
|
||||||
- Change: [#17998] Show cursor when using inverted mouse dragging.
|
- Change: [#17998] Show cursor when using inverted mouse dragging.
|
||||||
- Change: [#18230] Make the large flat to steep pieces available on the corkscrew roller coaster without cheats.
|
- Change: [#18230] Make the large flat to steep pieces available on the corkscrew roller coaster without cheats.
|
||||||
- Change: [#18381] Convert custom invisible paths to the built-in ones.
|
- Change: [#18381] Convert custom invisible paths to the built-in ones.
|
||||||
|
- Fix: [#11679] Facilities clipping issues.
|
||||||
- Fix: [#14312] Research ride type message incorrect.
|
- Fix: [#14312] Research ride type message incorrect.
|
||||||
- Fix: [#14425] Ride ratings do not skip unallocated ride ids.
|
- Fix: [#14425] Ride ratings do not skip unallocated ride ids.
|
||||||
- Fix: [#15969] Guests heading for ride use vanilla behaviour
|
- Fix: [#15969] Guests heading for ride use vanilla behaviour
|
||||||
|
|
|
@ -32,10 +32,10 @@ static void PaintFacility(
|
||||||
if (firstCarEntry == nullptr)
|
if (firstCarEntry == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto lengthX = (direction & 1) == 0 ? 28 : 2;
|
auto lengthX = direction == 1 ? 2 : 28;
|
||||||
auto lengthY = (direction & 1) == 0 ? 2 : 28;
|
auto lengthY = direction == 2 ? 2 : 28;
|
||||||
CoordsXYZ offset(0, 0, height);
|
CoordsXYZ offset(0, 0, height);
|
||||||
BoundBoxXYZ bb = { { direction == 3 ? 28 : 2, direction == 0 ? 28 : 2, height }, { lengthX, lengthY, 29 } };
|
BoundBoxXYZ bb = { { 2, 2, height }, { lengthX, lengthY, 29 } };
|
||||||
|
|
||||||
auto imageTemplate = session.TrackColours[SCHEME_TRACK];
|
auto imageTemplate = session.TrackColours[SCHEME_TRACK];
|
||||||
auto imageIndex = firstCarEntry->base_image_id + ((direction + 2) & 3);
|
auto imageIndex = firstCarEntry->base_image_id + ((direction + 2) & 3);
|
||||||
|
|
Loading…
Reference in a new issue