diff options
Diffstat (limited to 'src/ui')
-rwxr-xr-x | src/ui/modelview.cc | 4 |
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) { |