no longer sets model->loaded if the model file was not found, since the old Mod_Check...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 28 May 2006 00:23:59 +0000 (00:23 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 28 May 2006 00:23:59 +0000 (00:23 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6397 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index 9bffa31..8b2333f 100644 (file)
@@ -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;
 }