diff options
Diffstat (limited to 'src/client/view.cc')
-rw-r--r-- | src/client/view.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/view.cc b/src/client/view.cc index 6631f95..68df0e3 100644 --- a/src/client/view.cc +++ b/src/client/view.cc @@ -231,8 +231,10 @@ void View::resize() void View::draw() { + // view is only drawn when the application is connected + // draw hud only when connected and controlling a spacecraft - if (core::application()->connected() && core::localcontrol() && !ui::root()->active()) { + if (core::localcontrol() && !ui::root()->active()) { view_hud->set_visible(true); } else { view_hud->set_visible(false); @@ -252,7 +254,7 @@ void View::draw() view_stats->set_visible(draw_stats->value() ? true : false); view_keypress->set_visible(draw_keypress->value() ? true : false); - if (core::application()->connected() && core::game()->interactive()) { + if (core::game()->interactive()) { if (ui::console()->visible()) { view_notify->set_visible(false); } else if (view_chat->visible() && !view_chat->small_view()) { |