mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 06:44:38 +01:00
refactor g1Elements pointer and implement sub_68371D
This commit is contained in:
@@ -299,7 +299,7 @@ static void window_install_track_paint()
|
||||
uint16 holes, speed, drops, dropHeight, inversions;
|
||||
fixed32_2dp rating;
|
||||
int x, y, colour, gForces, airTime;
|
||||
rct_g1_element tmpElement, *subsituteElement, *g1Elements = RCT2_ADDRESS(RCT2_ADDRESS_G1_ELEMENTS, rct_g1_element);
|
||||
rct_g1_element tmpElement, *subsituteElement;
|
||||
|
||||
window_paint_get_registers(w, dpi);
|
||||
|
||||
|
||||
@@ -893,7 +893,7 @@ static void window_map_scrollpaint()
|
||||
|
||||
gfx_clear(dpi, 0x0A0A0A0A);
|
||||
|
||||
g1_element = RCT2_ADDRESS(RCT2_ADDRESS_G1_ELEMENTS, rct_g1_element);
|
||||
g1_element = &g1Elements[0];
|
||||
pushed_g1_element = *g1_element;
|
||||
|
||||
g1_element->offset = RCT2_GLOBAL(RCT2_ADDRESS_MAP_IMAGE_DATA, uint8*);
|
||||
|
||||
@@ -393,7 +393,7 @@ static void window_track_list_paint()
|
||||
uint16 holes, speed, drops, dropHeight, inversions;
|
||||
fixed32_2dp rating;
|
||||
int trackIndex, x, y, colour, gForces, airTime;
|
||||
rct_g1_element tmpElement, *subsituteElement, *g1Elements = RCT2_ADDRESS(RCT2_ADDRESS_G1_ELEMENTS, rct_g1_element);
|
||||
rct_g1_element tmpElement, *subsituteElement;
|
||||
|
||||
window_paint_get_registers(w, dpi);
|
||||
|
||||
|
||||
@@ -596,7 +596,7 @@ static void window_track_place_paint()
|
||||
{
|
||||
rct_window *w;
|
||||
rct_drawpixelinfo *dpi, *clippedDpi;
|
||||
rct_g1_element tmpElement, *subsituteElement, *g1Elements = RCT2_ADDRESS(RCT2_ADDRESS_G1_ELEMENTS, rct_g1_element);
|
||||
rct_g1_element tmpElement, *subsituteElement;
|
||||
|
||||
window_paint_get_registers(w, dpi);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user