mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 03:23:15 +01:00
Fixes the last bug
This commit is contained in:
@@ -427,13 +427,10 @@ rct_map_element *ride_find_track_gap(rct_map_element *startTrackElement, int *ou
|
||||
*
|
||||
* rct2: 0x006B4800
|
||||
*/
|
||||
void ride_construct_new(uint8 ah, uint8 al)
|
||||
void ride_construct_new(int list_item)
|
||||
{
|
||||
int eax, ebx, ecx, edx, esi, edi, ebp;
|
||||
edx = 0;
|
||||
edx = ah;
|
||||
edx << 8; //Set high byte
|
||||
edx += al;//Set low byte
|
||||
edx = list_item;
|
||||
eax = 0;
|
||||
ecx = 0;
|
||||
ebx = 1;
|
||||
|
||||
@@ -384,7 +384,7 @@ void ride_update_favourited_stat();
|
||||
void ride_check_all_reachable();
|
||||
rct_map_element *sub_6CAF80(int rideIndex, int *outX, int *outY);
|
||||
rct_map_element *ride_find_track_gap(rct_map_element *startTrackElement, int *outX, int *outY);
|
||||
void ride_construct_new(uint8 ah, uint8 al);
|
||||
void ride_construct_new(int list_item);
|
||||
int ride_try_construct(rct_map_element *trackMapElement);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -990,5 +990,5 @@ static void window_new_ride_select(rct_window *w)
|
||||
|
||||
// Show ride construction window
|
||||
//RCT2_CALLPROC_X(0x006B4800, *((sint16*)&item), 0, 0, 0, 0, 0, 0);
|
||||
ride_construct_new(item.type, item.entry_index);
|
||||
ride_construct_new(*((sint16*)&item));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user