mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-24 03:12:03 -05:00
Name sub_6CA162()
This commit is contained in:
parent
aa17f296cb
commit
ea96ab0225
2 changed files with 7 additions and 7 deletions
|
@ -217,7 +217,7 @@ static void ride_update_vehicle_colours(sint32 rideIndex);
|
|||
static void ride_set_vehicle_colours_to_random_preset(rct_ride *ride, uint8 preset_index);
|
||||
void loc_6DDF9C(rct_ride *ride, rct_map_element *mapElement);
|
||||
bool sub_6CA2DF(sint32 *trackType, sint32 *trackDirection, sint32 *rideIndex, sint32 *edxRS16, sint32 *x, sint32 *y, sint32 *z, sint32 *properties);
|
||||
money32 sub_6CA162(sint32 rideIndex, sint32 trackType, sint32 trackDirection, sint32 edxRS16, sint32 x, sint32 y, sint32 z);
|
||||
money32 place_provisional_track_piece(sint32 rideIndex, sint32 trackType, sint32 trackDirection, sint32 edxRS16, sint32 x, sint32 y, sint32 z);
|
||||
|
||||
rct_ride *get_ride(sint32 index)
|
||||
{
|
||||
|
@ -1336,7 +1336,7 @@ void ride_restore_provisional_track_piece()
|
|||
if (sub_6CA2DF(&type, &direction, &rideIndex, &edxRS16, &x, &y, &z, NULL)) {
|
||||
ride_construction_remove_ghosts();
|
||||
} else {
|
||||
_currentTrackPrice = sub_6CA162(rideIndex, type, direction, edxRS16, x, y, z);
|
||||
_currentTrackPrice = place_provisional_track_piece(rideIndex, type, direction, edxRS16, x, y, z);
|
||||
window_ride_construction_update_active_elements();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -491,7 +491,7 @@ static void window_ride_construction_update_map_selection();
|
|||
static void window_ride_construction_update_possible_ride_configurations();
|
||||
static void window_ride_construction_update_widgets(rct_window *w);
|
||||
static void window_ride_construction_select_map_tiles(rct_ride *ride, sint32 trackType, sint32 trackDirection, sint32 x, sint32 y);
|
||||
money32 sub_6CA162(sint32 rideIndex, sint32 trackType, sint32 trackDirection, sint32 edxRS16, sint32 x, sint32 y, sint32 z);
|
||||
money32 place_provisional_track_piece(sint32 rideIndex, sint32 trackType, sint32 trackDirection, sint32 edxRS16, sint32 x, sint32 y, sint32 z);
|
||||
static void window_ride_construction_show_special_track_dropdown(rct_window *w, rct_widget *widget);
|
||||
static void ride_selected_track_set_seat_rotation(sint32 seatRotation);
|
||||
static void loc_6C7502(sint32 al);
|
||||
|
@ -2752,7 +2752,7 @@ static void window_ride_construction_update_enabled_track_pieces()
|
|||
*
|
||||
* rct2: 0x006CA162
|
||||
*/
|
||||
money32 sub_6CA162(sint32 rideIndex, sint32 trackType, sint32 trackDirection, sint32 edxRS16, sint32 x, sint32 y, sint32 z)
|
||||
money32 place_provisional_track_piece(sint32 rideIndex, sint32 trackType, sint32 trackDirection, sint32 edxRS16, sint32 x, sint32 y, sint32 z)
|
||||
{
|
||||
rct_ride *ride;
|
||||
money32 result;
|
||||
|
@ -2818,7 +2818,7 @@ void sub_6C94D8()
|
|||
if (sub_6CA2DF(&type, &direction, &rideIndex, &edxRS16, &x, &y, &z, NULL)) {
|
||||
ride_construction_remove_ghosts();
|
||||
} else {
|
||||
_currentTrackPrice = sub_6CA162(rideIndex, type, direction, edxRS16, x, y, z);
|
||||
_currentTrackPrice = place_provisional_track_piece(rideIndex, type, direction, edxRS16, x, y, z);
|
||||
window_ride_construction_update_active_elements();
|
||||
}
|
||||
}
|
||||
|
@ -3730,7 +3730,7 @@ void ride_construction_toolupdate_construct(sint32 screenX, sint32 screenY)
|
|||
if (ride->type == RIDE_TYPE_MAZE) {
|
||||
for (;;) {
|
||||
sub_6CA2DF(&trackType, &trackDirection, &rideIndex, &edxRS16, &x, &y, &z, NULL);
|
||||
_currentTrackPrice = sub_6CA162(rideIndex, trackType, trackDirection, edxRS16, x, y, z);
|
||||
_currentTrackPrice = place_provisional_track_piece(rideIndex, trackType, trackDirection, edxRS16, x, y, z);
|
||||
if (_currentTrackPrice != MONEY32_UNDEFINED)
|
||||
break;
|
||||
|
||||
|
@ -3753,7 +3753,7 @@ void ride_construction_toolupdate_construct(sint32 screenX, sint32 screenY)
|
|||
|
||||
for (;;) {
|
||||
sub_6CA2DF(&trackType, &trackDirection, &rideIndex, &edxRS16, &x, &y, &z, NULL);
|
||||
_currentTrackPrice = sub_6CA162(rideIndex, trackType, trackDirection, edxRS16, x, y, z);
|
||||
_currentTrackPrice = place_provisional_track_piece(rideIndex, trackType, trackDirection, edxRS16, x, y, z);
|
||||
if (_currentTrackPrice != MONEY32_UNDEFINED)
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue