Fix #11679: Facilities clipping issues

This commit is contained in:
Rik Smeets 2022-11-05 12:08:23 +01:00 committed by GitHub
parent f41e395d0a
commit c9b6292b88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -9,6 +9,7 @@
- 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: [#18381] Convert custom invisible paths to the built-in ones.
- Fix: [#11679] Facilities clipping issues.
- Fix: [#14312] Research ride type message incorrect.
- Fix: [#14425] Ride ratings do not skip unallocated ride ids.
- Fix: [#15969] Guests heading for ride use vanilla behaviour

View File

@ -32,10 +32,10 @@ static void PaintFacility(
if (firstCarEntry == nullptr)
return;
auto lengthX = (direction & 1) == 0 ? 28 : 2;
auto lengthY = (direction & 1) == 0 ? 2 : 28;
auto lengthX = direction == 1 ? 2 : 28;
auto lengthY = direction == 2 ? 2 : 28;
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 imageIndex = firstCarEntry->base_image_id + ((direction + 2) & 3);