@@ -22,7 +22,7 @@ static constexpr const uint8_t track_map_1x5[][5] = {
2222 { 0 , 1 , 2 , 3 , 4 },
2323};
2424
25- struct pirate_ship_bound_box
25+ struct swinging_ship_bound_box
2626{
2727 int16_t length_x;
2828 int16_t length_y;
@@ -31,10 +31,10 @@ struct pirate_ship_bound_box
3131};
3232
3333/* * rct2: 0x008A83B0 */
34- static constexpr const uint32_t pirate_ship_base_sprite_offset [] = { 0 , 9 , 0 , 9 };
34+ static constexpr const uint32_t swinging_ship_base_sprite_offset [] = { 0 , 9 , 0 , 9 };
3535
3636/* * rct2: 0x008A83C0 */
37- static constexpr const pirate_ship_bound_box pirate_ship_data [] = {
37+ static constexpr const swinging_ship_bound_box swinging_ship_data [] = {
3838 { 31 , 16 , 1 , 8 },
3939 { 16 , 31 , 8 , 1 },
4040 { 31 , 16 , 1 , 8 },
@@ -43,19 +43,19 @@ static constexpr const pirate_ship_bound_box pirate_ship_data[] = {
4343
4444enum
4545{
46- SPR_PIRATE_SHIP_FRAME_SW_NE = 21994 ,
47- SPR_PIRATE_SHIP_FRAME_FRONT_SW_NE = 21995 ,
48- SPR_PIRATE_SHIP_FRAME_NW_SE = 21996 ,
49- SPR_PIRATE_SHIP_FRAME_FRONT_NW_SE = 21997 ,
46+ SPR_SWINGING_SHIP_FRAME_SW_NE = 21994 ,
47+ SPR_SWINGING_SHIP_FRAME_FRONT_SW_NE = 21995 ,
48+ SPR_SWINGING_SHIP_FRAME_NW_SE = 21996 ,
49+ SPR_SWINGING_SHIP_FRAME_FRONT_NW_SE = 21997 ,
5050};
5151
52- static constexpr const uint32_t pirate_ship_frame_sprites [][2 ] = {
53- { SPR_PIRATE_SHIP_FRAME_SW_NE, SPR_PIRATE_SHIP_FRAME_FRONT_SW_NE },
54- { SPR_PIRATE_SHIP_FRAME_NW_SE, SPR_PIRATE_SHIP_FRAME_FRONT_NW_SE },
52+ static constexpr const uint32_t swinging_ship_frame_sprites [][2 ] = {
53+ { SPR_SWINGING_SHIP_FRAME_SW_NE, SPR_SWINGING_SHIP_FRAME_FRONT_SW_NE },
54+ { SPR_SWINGING_SHIP_FRAME_NW_SE, SPR_SWINGING_SHIP_FRAME_FRONT_NW_SE },
5555};
5656
5757/* * rct2: 0x4AF254 */
58- static void paint_pirate_ship_structure (
58+ static void paint_swinging_ship_structure (
5959 paint_session* session, Ride* ride, uint8_t direction, int8_t axisOffset, uint16_t height)
6060{
6161 uint32_t imageId, baseImageId;
@@ -78,7 +78,7 @@ static void paint_pirate_ship_structure(
7878 session->CurrentlyDrawnItem = vehicle;
7979 }
8080
81- baseImageId = rideEntry->vehicles [0 ].base_image_id + pirate_ship_base_sprite_offset [direction];
81+ baseImageId = rideEntry->vehicles [0 ].base_image_id + swinging_ship_base_sprite_offset [direction];
8282 if (vehicle != nullptr )
8383 {
8484 int32_t rotation = static_cast <int8_t >(vehicle->vehicle_sprite_type );
@@ -103,9 +103,9 @@ static void paint_pirate_ship_structure(
103103 imageColourFlags = SPRITE_ID_PALETTE_COLOUR_2 (ride->vehicle_colours [0 ].Body , ride->vehicle_colours [0 ].Trim );
104104 }
105105
106- pirate_ship_bound_box bounds = pirate_ship_data [direction];
106+ swinging_ship_bound_box bounds = swinging_ship_data [direction];
107107
108- imageId = pirate_ship_frame_sprites [(direction & 1 )][0 ] | session->TrackColours [SCHEME_TRACK];
108+ imageId = swinging_ship_frame_sprites [(direction & 1 )][0 ] | session->TrackColours [SCHEME_TRACK];
109109 sub_98197C (
110110 session, imageId, xOffset, yOffset, bounds.length_x , bounds.length_y , 80 , height, bounds.offset_x , bounds.offset_y ,
111111 height);
@@ -156,7 +156,7 @@ static void paint_pirate_ship_structure(
156156 }
157157 }
158158
159- imageId = pirate_ship_frame_sprites [(direction & 1 )][1 ] | session->TrackColours [SCHEME_TRACK];
159+ imageId = swinging_ship_frame_sprites [(direction & 1 )][1 ] | session->TrackColours [SCHEME_TRACK];
160160 sub_98199C (
161161 session, imageId, xOffset, yOffset, bounds.length_x , bounds.length_y , 80 , height, bounds.offset_x , bounds.offset_y ,
162162 height);
@@ -166,7 +166,7 @@ static void paint_pirate_ship_structure(
166166}
167167
168168/* * rct2: 0x008A85C4 */
169- static void paint_pirate_ship (
169+ static void paint_swinging_ship (
170170 paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height,
171171 const TileElement* tileElement)
172172{
@@ -296,19 +296,19 @@ static void paint_pirate_ship(
296296 switch (relativeTrackSequence)
297297 {
298298 case 1 :
299- paint_pirate_ship_structure (session, ride, direction, 64 , height);
299+ paint_swinging_ship_structure (session, ride, direction, 64 , height);
300300 break ;
301301 case 2 :
302- paint_pirate_ship_structure (session, ride, direction, 32 , height);
302+ paint_swinging_ship_structure (session, ride, direction, 32 , height);
303303 break ;
304304 case 0 :
305- paint_pirate_ship_structure (session, ride, direction, 0 , height);
305+ paint_swinging_ship_structure (session, ride, direction, 0 , height);
306306 break ;
307307 case 3 :
308- paint_pirate_ship_structure (session, ride, direction, -32 , height);
308+ paint_swinging_ship_structure (session, ride, direction, -32 , height);
309309 break ;
310310 case 4 :
311- paint_pirate_ship_structure (session, ride, direction, -64 , height);
311+ paint_swinging_ship_structure (session, ride, direction, -64 , height);
312312 break ;
313313 }
314314
@@ -318,12 +318,12 @@ static void paint_pirate_ship(
318318/* *
319319 * rct2: 0x008A83E0
320320 */
321- TRACK_PAINT_FUNCTION get_track_paint_function_pirate_ship (int32_t trackType, int32_t direction)
321+ TRACK_PAINT_FUNCTION get_track_paint_function_swinging_ship (int32_t trackType, int32_t direction)
322322{
323323 if (trackType != FLAT_TRACK_ELEM_1_X_5)
324324 {
325325 return nullptr ;
326326 }
327327
328- return paint_pirate_ship ;
328+ return paint_swinging_ship ;
329329}
0 commit comments