Skip to content

Commit

Permalink
Fix wrong image on roadblock orders window
Browse files Browse the repository at this point in the history
  • Loading branch information
crudelios committed Feb 2, 2025
1 parent 38ab520 commit 09d9725
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/window/building/distribution.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ static void draw_accept_none_button(int x, int y, int focused, affect_all_button
{
button_border_draw(x, y, 20, 20, focused ? 1 : 0);
if (state == ACCEPT_ALL) {
image_draw(assets_get_image_id("UI", "Selection_Checkmark"), x + 4, y + 4, COLOR_MASK_NONE, SCALE_NONE);
image_draw(assets_lookup_image_id(ASSET_UI_SELECTION_CHECKMARK), x + 4, y + 4, COLOR_MASK_NONE, SCALE_NONE);
} else {
image_draw(assets_get_image_id("UI", "Denied_Walker_Checkmark"), x + 4, y + 4, COLOR_MASK_NONE, SCALE_NONE);
}
Expand Down
2 changes: 1 addition & 1 deletion src/window/building/utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static int affect_all_button_state(void)
static void draw_roadblock_orders_buttons(int x, int y, int focused)
{
if (affect_all_button_state() == ACCEPT_ALL) {
image_draw(assets_get_image_id("UI", "Allowed_Walker_Check"), x + 29, y + 4, COLOR_MASK_NONE, SCALE_NONE);
image_draw(assets_lookup_image_id(ASSET_UI_SELECTION_CHECKMARK), x + 29, y + 4, COLOR_MASK_NONE, SCALE_NONE);
} else {
image_draw(assets_get_image_id("UI", "Denied_Walker_Checkmark"), x + 29, y + 4, COLOR_MASK_NONE, SCALE_NONE);
}
Expand Down

0 comments on commit 09d9725

Please sign in to comment.