Skip to content

Commit

Permalink
Fix highlighting the new city when switching with prev/next
Browse files Browse the repository at this point in the history
Use the generic setup_ui function instead of duplicating its code in get_city.

See #1788.
  • Loading branch information
lmoureaux authored and jwrober committed Jan 30, 2023
1 parent 7e8a585 commit 12dd15a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/citydlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2191,8 +2191,7 @@ void city_dialog::get_city(bool next)
city_list_get(client.conn.playing->cities, (i + k + size) % size);
}
queen()->mapview_wdg->center_on_tile(other_pcity->tile);
pcity = other_pcity;
refresh();
setup_ui(other_pcity);
}

/**
Expand Down

0 comments on commit 12dd15a

Please sign in to comment.