Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/gui/gui_map_icons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,9 @@ class unit_counter_window : public window_element_base {
if(!prov) {
continue;
}
if(army.get_navy_from_army_transport()) {
continue;
}
if(render_count[prov.index()] == render_global_count) {
continue;
}
Expand Down Expand Up @@ -1072,6 +1075,9 @@ class unit_counter_window : public window_element_base {
if(!prov) {
continue;
}
if(army.get_navy_from_army_transport()) {
continue;
}
if(render_count[prov.index()] == render_global_count) {
continue;
}
Expand Down Expand Up @@ -1260,6 +1266,9 @@ class unit_counter_window : public window_element_base {
if(!prov) {
continue;
}
if(army.get_navy_from_army_transport()) {
continue;
}
if(probe_specific_province(state, prov, mx, my, type)) {
probe_result.under_mouse = this;
return probe_result;
Expand Down
2 changes: 1 addition & 1 deletion src/gui/gui_units.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ message_result grid_box::get(sys::state& state, Cyto::Any& payload) noexcept {

void grid_box::open(sys::state& state, ui::xy_pair location, ui::xy_pair source_size, dcon::province_id p, bool port) {
if(!as_port) {
if(p.index() < state.province_definitions.first_sea_province.index()) {
if(p.index() < state.province_definitions.first_sea_province.index() && !port) {
auto pname = text::produce_simple_string(state, state.world.province_get_name(p));
auto arange = state.world.province_get_army_location(p);
if(int32_t(arange.end() - arange.begin()) <= 1)
Expand Down
Loading