Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-11-29 16:04:03 +0000
committerStijn Buys <ingar@osirion.org>2010-11-29 16:04:03 +0000
commit8774e65cc503318005f34c133cbaee21b18fc144 (patch)
tree907c120079597398abfda5d4791ce58573009e7c /src/ui
parent2c7d185fdb03d17475deb9af1edaa82ffa51d4b6 (diff)
Parse command line options after engine initialization.
Diffstat (limited to 'src/ui')
-rwxr-xr-xsrc/ui/modelview.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/modelview.cc b/src/ui/modelview.cc
index e715119..dc6ddfc 100755
--- a/src/ui/modelview.cc
+++ b/src/ui/modelview.cc
@@ -139,6 +139,10 @@ void ModelView::draw()
return;
}
+ if (!core::application()->connected() || !core::game()->time()) {
+ return;
+ }
+
Paint::set_color(1.0f, 1.0f, 1.0f);
model::Model *model = model::Model::load(modelview_modelname);
if (!model) {