diff options
Diffstat (limited to 'src/client/view.cc')
-rw-r--r-- | src/client/view.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/view.cc b/src/client/view.cc index 6c792d6..4fe7a33 100644 --- a/src/client/view.cc +++ b/src/client/view.cc @@ -214,7 +214,7 @@ void draw_cursor() return; float angle = 0; - float pointer_size = 48.0f; + const float pointer_size = 48.0f; float x = (float) input::mouse_position_x() - (pointer_size / 2.0f); float y = (float) input::mouse_position_y() - (pointer_size / 2.0f); bool cursor_animated = false; @@ -392,9 +392,6 @@ void frame(float seconds) if (core::application()->connected() && core::game()->serverframetime()) { render::draw(seconds); // draw the world targets::frame(); - if (draw_ui->value()) { - targets::draw_target(); - } } // switch to orthographic projection to draw the GUI @@ -423,7 +420,10 @@ void frame(float seconds) // draw text elements if (draw_ui->value()) { Text::setfont("bitmaps/fonts/gui", 12, 18); - + + // draw the current target selection + targets::draw_target(); + // draw the player status draw_status(); |