Skip to content

Commit

Permalink
Fix map view jumping to the next city when switching
Browse files Browse the repository at this point in the history
Closes #1844.
  • Loading branch information
lmoureaux committed Dec 27, 2023
1 parent e8977a1 commit 96080cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2542,7 +2542,8 @@ void do_map_click(struct tile *ptile, enum quickselect_type qtype)
unit_focus_set_and_select(qunit);
maybe_goto = gui_options->keyboardless_goto;
}
} else if (nullptr != pcity && pcity->client.full) {
} else if (qtype == SELECT_POPUP && nullptr != pcity
&& pcity->client.full) {
// Otherwise use popups.
popup_city_dialog(pcity);
} else if (!near_pcity && unit_list_size(ptile->units) == 0
Expand Down

0 comments on commit 96080cd

Please sign in to comment.