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 e026024 commit af6336a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2543,7 +2543,7 @@ 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
} else if (qtype == SELECT_POPUP && nullptr != pcity
&& can_player_see_city_internals(client.conn.playing, pcity)) {
// Otherwise use popups.
popup_city_dialog(pcity);
Expand Down

0 comments on commit af6336a

Please sign in to comment.