mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Replace constants with palette codes.
This commit is contained in:
committed by
Richard Jenkins
parent
ead49fa84e
commit
f5db6dbde9
@@ -87,6 +87,7 @@ typedef enum {
|
||||
PALETTE_34 = 34,
|
||||
|
||||
PALETTE_45 = 45, // Decolourise + lighten
|
||||
PALETTE_46 = 46,
|
||||
|
||||
PALETTE_DARKEN_3 = 47,
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ void fence_paint(paint_session * session, uint8 direction, sint32 height, rct_ti
|
||||
uint32 dword_141F710 = 0;
|
||||
if (gTrackDesignSaveMode || (gCurrentViewportFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES)) {
|
||||
if (!track_design_save_contains_tile_element(tile_element)) {
|
||||
dword_141F710 = 0x21700000;
|
||||
dword_141F710 = SPRITE_ID_PALETTE_COLOUR_1(PALETTE_46);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -205,7 +205,7 @@ void large_scenery_paint(paint_session * session, uint8 direction, uint16 height
|
||||
LocationXYZ16 boxoffset;
|
||||
if (gTrackDesignSaveMode) {
|
||||
if (!track_design_save_contains_tile_element(tileElement)) {
|
||||
sequenceNum = 0x21700000;
|
||||
sequenceNum = SPRITE_ID_PALETTE_COLOUR_1(PALETTE_46);
|
||||
image_id &= 0x7FFFF;
|
||||
dword_F4387C = sequenceNum;
|
||||
image_id |= dword_F4387C;
|
||||
|
||||
@@ -699,13 +699,13 @@ void path_paint(paint_session * session, uint8 direction, uint16 height, rct_til
|
||||
}
|
||||
|
||||
if (!track_design_save_contains_tile_element(tile_element)) {
|
||||
imageFlags = 0x21700000;
|
||||
imageFlags = SPRITE_ID_PALETTE_COLOUR_1(PALETTE_46);
|
||||
}
|
||||
}
|
||||
|
||||
if (gCurrentViewportFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES)
|
||||
{
|
||||
imageFlags = 0x21700000;
|
||||
imageFlags = SPRITE_ID_PALETTE_COLOUR_1(PALETTE_46);
|
||||
}
|
||||
|
||||
if (footpath_element_path_scenery_is_ghost(tile_element)) {
|
||||
|
||||
@@ -59,7 +59,7 @@ void scenery_paint(paint_session * session, uint8 direction, sint32 height, rct_
|
||||
const sint32 rotation = get_current_rotation();
|
||||
if (gTrackDesignSaveMode) {
|
||||
if (!track_design_save_contains_tile_element(tileElement)) {
|
||||
baseImageid = 0x21700000;
|
||||
baseImageid = SPRITE_ID_PALETTE_COLOUR_1(PALETTE_46);
|
||||
}
|
||||
}
|
||||
if (tileElement->flags & TILE_ELEMENT_FLAG_GHOST) {
|
||||
|
||||
Reference in New Issue
Block a user