From 0327b5ddf7262777f5de3805c93a14bb09a465f7 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 19 Jun 2005 17:47:30 +0000 Subject: [PATCH] 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 --- host_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2