From: havoc Date: Sun, 19 Jun 2005 17:47:30 +0000 (+0000) Subject: better detection of model load failures in viewmodel command X-Git-Tag: xonotic-v0.1.0preview~4733 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0327b5ddf7262777f5de3805c93a14bb09a465f7;p=xonotic%2Fdarkplaces.git better detection of model load failures in viewmodel command git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5450 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host_cmd.c b/host_cmd.c index 59eaee05..79665d2e 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -1681,9 +1681,9 @@ void Host_Viewmodel_f (void) return; m = Mod_ForName (Cmd_Argv(1), false, true, false); - if (!m) + if (!m || !m->loaded || !m->Draw) { - Con_Printf("Can't load %s\n", Cmd_Argv(1)); + Con_Printf("viewmodel: can't load %s\n", Cmd_Argv(1)); return; }