From 5f18c4eea23e0d12cc50afd33e95fb5f50e1d9d0 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 23 Oct 2005 20:24:03 +0000 Subject: [PATCH] fixed a bug that was making "Model %s not found" warnings never appear when parsing the model precache list git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5759 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cl_parse.c b/cl_parse.c index 5933c863..2ecbd6d7 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -448,14 +448,14 @@ void CL_ParseServerInfo (void) // world model CL_KeepaliveMessage (); cl.model_precache[1] = Mod_ForName(parse_model_precache[1], false, false, true); - if (cl.model_precache[1] == NULL) + if (cl.model_precache[1]->Draw == NULL) Con_Printf("Map %s not found\n", parse_model_precache[1]); // normal models for (i=2 ; iDraw == NULL) Con_Printf("Model %s not found\n", parse_model_precache[i]); } -- 2.39.2