Skip to content

Commit

Permalink
TopMenubar/Water: hide controls on terrains w/o water
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp committed Sep 27, 2024
1 parent 8c9755a commit 38d857a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/main/gui/panels/GUI_TopMenubar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,8 @@ void TopMenubar::Draw(float dt)
}
}
#endif // USE_CAELUM
if (App::mp_state->getEnum<MpState>() != MpState::CONNECTED)
if (App::mp_state->getEnum<MpState>() != MpState::CONNECTED
&& App::GetGameContext()->GetTerrain()->GetDef().has_water)
{
ImGui::Separator();
ImGui::PushID("water");
Expand Down

0 comments on commit 38d857a

Please sign in to comment.