From 16dee271a7e503a49993c5f934aeb6eb45c19ae1 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 28 May 2006 00:23:59 +0000 Subject: [PATCH] no longer sets model->loaded if the model file was not found, since the old Mod_CheckLoaded code is long gone git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6397 d7cf8633-e32d-0410-b094-e92efae38249 --- model_shared.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/model_shared.c b/model_shared.c index 9bffa313..8b2333f4 100644 --- a/model_shared.c +++ b/model_shared.c @@ -223,15 +223,14 @@ model_t *Mod_LoadModel(model_t *mod, qboolean crash, qboolean checkdisk, qboolea else if (num == BSPVERSION || num == 30) Mod_Q1BSP_Load(mod, buf, bufend); else Con_Printf("Mod_LoadModel: model \"%s\" is of unknown/unsupported type\n", mod->name); Mem_Free(buf); + // no fatal errors occurred, so this model is ready to use. + mod->loaded = true; } else if (crash) { // LordHavoc: Sys_Error was *ANNOYING* Con_Printf ("Mod_LoadModel: %s not found\n", mod->name); } - - // no errors occurred - mod->loaded = true; return mod; } -- 2.39.2