Use `construction_markers`

This commit is contained in:
Marijn van der Werf 2016-08-04 14:35:08 +02:00
parent 6bdc2206d9
commit bb1ea5c9c7
3 changed files with 4 additions and 4 deletions

View File

@ -692,12 +692,12 @@ void path_paint(uint8 direction, uint16 height, rct_map_element * map_element)
}
if (footpath_element_path_scenery_is_ghost(map_element)) {
sceneryImageFlags = RCT2_ADDRESS(0x993CC4, uint32_t)[gConfigGeneral.construction_marker_colour];
sceneryImageFlags = construction_markers[gConfigGeneral.construction_marker_colour];
}
if (map_element->flags & MAP_ELEMENT_FLAG_GHOST) {
gPaintInteractionType = VIEWPORT_INTERACTION_ITEM_NONE;
imageFlags = RCT2_ADDRESS(0x993CC4, uint32_t)[gConfigGeneral.construction_marker_colour];
imageFlags = construction_markers[gConfigGeneral.construction_marker_colour];
}
sint16 x = RCT2_GLOBAL(0x009DE56A, sint16), y = RCT2_GLOBAL(0x009DE56E, sint16);

View File

@ -59,7 +59,7 @@ void scenery_paint(uint8 direction, int height, rct_map_element* mapElement) {
}
if (mapElement->flags & MAP_ELEMENT_FLAG_GHOST) {
gPaintInteractionType = VIEWPORT_INTERACTION_ITEM_NONE;
baseImageid = RCT2_ADDRESS(0x993CC4, uint32_t)[gConfigGeneral.construction_marker_colour];
baseImageid = construction_markers[gConfigGeneral.construction_marker_colour];
}
uint32 dword_F64EB0 = baseImageid;

View File

@ -204,7 +204,7 @@ void scenery_multiple_paint(uint8 direction, uint16 height, rct_map_element *map
}
if (mapElement->flags & MAP_ELEMENT_FLAG_GHOST) {
gPaintInteractionType = VIEWPORT_INTERACTION_ITEM_NONE;
ebp = RCT2_ADDRESS(0x993CC4, uint32_t)[gConfigGeneral.construction_marker_colour];
ebp = construction_markers[gConfigGeneral.construction_marker_colour];
image_id &= 0x7FFFF;
dword_F4387C = ebp;
image_id |= dword_F4387C;