Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-08-06 14:40:36 +0000
committerStijn Buys <ingar@osirion.org>2008-08-06 14:40:36 +0000
commit668026125ae19b9bd800004ae9ec0510f20753ad (patch)
tree27a8c540bd3ef68f2f5a0b653246adc4dd180a21 /src/client/view.cc
parent18f21c931e6e071b6616a1c0a07026af9b185ad5 (diff)
improved target drawing
Diffstat (limited to 'src/client/view.cc')
-rw-r--r--src/client/view.cc10
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();