diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 222a74b3ff..f94aa657b5 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -43,6 +43,7 @@ - Fix: [#8433] Crash if master server response is not valid JSON. - Fix: [#8434] Crash if curl_easy_init fails. - Fix: [#8443] Crash when selecting the current vehicle for ride that has none available. +- Fix: [#8456] Junior booster track piece doesn't connect properly. - Fix: [#8464] Crash on game shutdown. - Fix: [#8469] Crash modifying colour on hacked rides. - Improved: [#2940] Allow mouse-dragging to set patrol area (Singleplayer only). diff --git a/resources/g2/sprites.json b/resources/g2/sprites.json index 83099a5d61..4e89f50a25 100644 --- a/resources/g2/sprites.json +++ b/resources/g2/sprites.json @@ -255,10 +255,14 @@ "path": "track/bm/booster_2.png" }, { - "path": "track/junior/booster_1.png" + "path": "track/junior/booster_1.png", + "x_offset": -21, + "y_offset": 0 }, { - "path": "track/junior/booster_2.png" + "path": "track/junior/booster_2.png", + "x_offset": -22, + "y_offset": 1 }, { "path": "icons/mute.png" diff --git a/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp b/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp index 2ad294f7ab..ae11e1d972 100644 --- a/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp @@ -5643,24 +5643,15 @@ static void junior_rc_booster_paint_setup( paint_session* session, uint8_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height, const TileElement* tileElement) { - int32_t XoffsetNESW = 12; - int32_t YoffsetNESW = -10; - int32_t XoffsetNWSE = 10; - int32_t YoffsetNWSE = -10; - if (direction & 1) { - sub_98196C( - session, SPR_JUNIOR_RC_BOOSTER_NE_SW | session->TrackColours[SCHEME_TRACK], XoffsetNESW, YoffsetNESW, 20, 32, 1, - height); + sub_98196C(session, SPR_JUNIOR_RC_BOOSTER_NE_SW | session->TrackColours[SCHEME_TRACK], 0, 0, 20, 32, 1, height); paint_util_push_tunnel_right(session, height, TUNNEL_0); } else { - sub_98196C( - session, SPR_JUNIOR_RC_BOOSTER_NW_SE | session->TrackColours[SCHEME_TRACK], XoffsetNWSE, YoffsetNWSE, 32, 20, 1, - height); + sub_98196C(session, SPR_JUNIOR_RC_BOOSTER_NW_SE | session->TrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height); paint_util_push_tunnel_left(session, height, TUNNEL_0); }