clarify the identity of the icons

develop
Myk Taylor 2023-01-12 14:43:46 -08:00
parent c98e389ac8
commit 9910c2610e
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 5 additions and 1 deletions

@ -36,6 +36,9 @@ static void paintScreen(df::coord target, bool skip_unrevealed = false) {
int selected_tile_texpos = 0; int selected_tile_texpos = 0;
Screen::findGraphicsTile("CURSORS", 4, 3, &selected_tile_texpos); Screen::findGraphicsTile("CURSORS", 4, 3, &selected_tile_texpos);
long pathable_tile_texpos = 779;
long unpathable_tile_texpos = 782;
auto dims = Gui::getDwarfmodeViewDims().map(); auto dims = Gui::getDwarfmodeViewDims().map();
for (int y = dims.first.y; y <= dims.second.y; ++y) { for (int y = dims.first.y; y <= dims.second.y; ++y) {
for (int x = dims.first.x; x <= dims.second.x; ++x) { for (int x = dims.first.x; x <= dims.second.x; ++x) {
@ -75,7 +78,8 @@ static void paintScreen(df::coord target, bool skip_unrevealed = false) {
if (map_pos == target) { if (map_pos == target) {
cur_tile.tile = selected_tile_texpos; cur_tile.tile = selected_tile_texpos;
} else{ } else{
cur_tile.tile = can_walk ? 779 : 782; cur_tile.tile = can_walk ?
pathable_tile_texpos : unpathable_tile_texpos;
} }
} else { } else {
int color = can_walk ? COLOR_GREEN : COLOR_RED; int color = can_walk ? COLOR_GREEN : COLOR_RED;