git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5763
d7cf8633-e32d-0410-b094-
e92efae38249
Con_DPrintf("loading model %s\n", mod->name);
// LordHavoc: unload the existing model in this slot (if there is one)
- Mod_UnloadModel(mod);
+ if (mod->loaded)
+ Mod_UnloadModel(mod);
// load the model
mod->isworldmodel = isworldmodel;
{
model_t *model;
model = Mod_FindName(name);
- if (!model->loaded || checkdisk)
+ if (model->name[0] != '*' && (!model->loaded || checkdisk))
Mod_LoadModel(model, crash, checkdisk, isworldmodel);
return model;
}