diff options
Diffstat (limited to 'src/client/view.cc')
-rw-r--r-- | src/client/view.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/view.cc b/src/client/view.cc index 4fe7a33..a551bf6 100644 --- a/src/client/view.cc +++ b/src/client/view.cc @@ -391,7 +391,6 @@ void frame(float seconds) if (core::application()->connected() && core::game()->serverframetime()) { render::draw(seconds); // draw the world - targets::frame(); } // switch to orthographic projection to draw the GUI @@ -421,8 +420,10 @@ void frame(float seconds) if (draw_ui->value()) { Text::setfont("bitmaps/fonts/gui", 12, 18); - // draw the current target selection - targets::draw_target(); + // draw the current targets + if (core::application()->connected() && core::game()->serverframetime()) { + targets::draw(); + } // draw the player status draw_status(); |