diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-26 15:12:00 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-26 15:12:00 +0000 |
commit | 7090f5cafe38946e0f6bd9756dca8a14f0ea056d (patch) | |
tree | 4512e93e779fec311985d5dc46151c229d410dfa /src/client/view.cc | |
parent | 88b3db1776759611950ed7c82e00c753c7481a22 (diff) |
don't render target selection bitmap with draw_ui 0
Diffstat (limited to 'src/client/view.cc')
-rw-r--r-- | src/client/view.cc | 5 |
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 |