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-07-26 15:12:00 +0000
committerStijn Buys <ingar@osirion.org>2008-07-26 15:12:00 +0000
commit7090f5cafe38946e0f6bd9756dca8a14f0ea056d (patch)
tree4512e93e779fec311985d5dc46151c229d410dfa /src/client/view.cc
parent88b3db1776759611950ed7c82e00c753c7481a22 (diff)
don't render target selection bitmap with draw_ui 0
Diffstat (limited to 'src/client/view.cc')
-rw-r--r--src/client/view.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/view.cc b/src/client/view.cc
index dc17cce..eda5cf8 100644
--- a/src/client/view.cc
+++ b/src/client/view.cc
@@ -347,7 +347,10 @@ void frame(float seconds)
if (core::application()->connected() && core::game()->serverframetime()) {
render::draw(seconds); // draw the world
- targets::draw();
+ targets::frame();
+ if (draw_ui->value()) {
+ targets::draw_target();
+ }
}
// switch to ortographic projection to draw the GUI