Replace constants with palette codes.

This commit is contained in:
Aaron van Geffen authored and Richard Jenkins committed 2018-02-05 00:20:12 +00:00
1 parent ead49fa84e
commit f5db6dbde9
5 files changed
+6 -5

No files matched your search

+1
View File
@@ -87,6 +87,7 @@ typedef enum {
PALETTE_34 = 34,
PALETTE_45 = 45, // Decolourise + lighten
PALETTE_46 = 46,
PALETTE_DARKEN_3 = 47,
+1 -1
View File
@@ -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;
+2 -2
View File
@@ -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) {