mirror of https://github.com/OpenRCT2/OpenRCT2.git
sub_0x68615B doesn't really take any params
In all cases, sub_0x68615B takes a single argument, 0xEE788C. It now takes 0 arguments and simply knows about its initializing values.
This commit is contained in:
parent
1662b18a7e
commit
8f2dc5fd1a
|
@ -608,10 +608,9 @@ void viewport_render(rct_drawpixelinfo *dpi, rct_viewport *viewport, int left, i
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* rct2: 0x0068615B
|
* rct2: 0x0068615B
|
||||||
* ebp: ebp
|
|
||||||
*/
|
*/
|
||||||
void sub_0x68615B(int ebp){
|
void painter_setup(){
|
||||||
RCT2_GLOBAL(0xEE7888, uint32) = ebp;
|
RCT2_GLOBAL(0xEE7888, uint32) = 0x00EE788C;
|
||||||
RCT2_GLOBAL(0xF1AD28, uint32) = 0;
|
RCT2_GLOBAL(0xF1AD28, uint32) = 0;
|
||||||
RCT2_GLOBAL(0xF1AD2C, uint32) = 0;
|
RCT2_GLOBAL(0xF1AD2C, uint32) = 0;
|
||||||
uint8* edi = RCT2_ADDRESS(0xF1A50C, uint8);
|
uint8* edi = RCT2_ADDRESS(0xF1A50C, uint8);
|
||||||
|
@ -2200,7 +2199,7 @@ void viewport_paint(rct_viewport* viewport, rct_drawpixelinfo* dpi, int left, in
|
||||||
RCT2_GLOBAL(0xEE7880, uint32) = 0xF1A4CC;
|
RCT2_GLOBAL(0xEE7880, uint32) = 0xF1A4CC;
|
||||||
RCT2_GLOBAL(0x140E9A8, uint32) = (int)dpi2;
|
RCT2_GLOBAL(0x140E9A8, uint32) = (int)dpi2;
|
||||||
int ebp = 0, ebx = 0, esi = 0, ecx = 0;
|
int ebp = 0, ebx = 0, esi = 0, ecx = 0;
|
||||||
sub_0x68615B(0xEE788C); //Memory copy
|
painter_setup();
|
||||||
viewport_paint_setup();
|
viewport_paint_setup();
|
||||||
sub_688217();
|
sub_688217();
|
||||||
sub_688485();
|
sub_688485();
|
||||||
|
@ -2585,7 +2584,7 @@ void get_map_coordinates_from_pos(int screenX, int screenY, int flags, sint16 *x
|
||||||
dpi->width = 1;
|
dpi->width = 1;
|
||||||
RCT2_GLOBAL(0xEE7880, uint32_t) = 0xF1A4CC;
|
RCT2_GLOBAL(0xEE7880, uint32_t) = 0xF1A4CC;
|
||||||
RCT2_GLOBAL(0x140E9A8, rct_drawpixelinfo*) = dpi;
|
RCT2_GLOBAL(0x140E9A8, rct_drawpixelinfo*) = dpi;
|
||||||
sub_0x68615B(0xEE788C);
|
painter_setup();
|
||||||
viewport_paint_setup();
|
viewport_paint_setup();
|
||||||
sub_688217();
|
sub_688217();
|
||||||
sub_68862C();
|
sub_68862C();
|
||||||
|
|
|
@ -127,7 +127,7 @@ void sub_68A15E(int screenX, int screenY, short *x, short *y, int *direction, rc
|
||||||
void viewport_interaction_remove_park_entrance(rct_map_element *mapElement, int x, int y);
|
void viewport_interaction_remove_park_entrance(rct_map_element *mapElement, int x, int y);
|
||||||
|
|
||||||
void sub_68B2B7(int x, int y);
|
void sub_68B2B7(int x, int y);
|
||||||
void sub_0x68615B(int ebp);
|
void painter_setup();
|
||||||
void sub_688485();
|
void sub_688485();
|
||||||
void sub_688217();
|
void sub_688217();
|
||||||
|
|
||||||
|
|
|
@ -2185,7 +2185,7 @@ static void sub_6CBCE2(
|
||||||
trackDirection &= 3;
|
trackDirection &= 3;
|
||||||
|
|
||||||
RCT2_GLOBAL(0x00EE7880, uint32) = 0x00F1A4CC;
|
RCT2_GLOBAL(0x00EE7880, uint32) = 0x00F1A4CC;
|
||||||
sub_0x68615B(0x00EE788C);
|
painter_setup();
|
||||||
|
|
||||||
ride = GET_RIDE(rideIndex);
|
ride = GET_RIDE(rideIndex);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue