From: havoc Date: Sun, 28 May 2006 00:23:59 +0000 (+0000) Subject: no longer sets model->loaded if the model file was not found, since the old Mod_Check... X-Git-Tag: xonotic-v0.1.0preview~3973 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=16dee271a7e503a49993c5f934aeb6eb45c19ae1;p=xonotic%2Fdarkplaces.git 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 --- 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; }