continue;
if (cls.signon < SIGNONS)
CL_KeepaliveMessage(true);
- if (!FS_FileExists(cl.model_name[cl.downloadmodel_current]))
+ if (strcmp(cl.model_name[cl.downloadmodel_current], "null") && !FS_FileExists(cl.model_name[cl.downloadmodel_current]))
{
if (cl.downloadmodel_current == 1)
Con_Printf("Map %s not found\n", cl.model_name[cl.downloadmodel_current]);
mod->loaded = false;
}
+void R_Model_Null_Draw(entity_render_t *ent)
+{
+ return;
+}
+
/*
==================
Mod_LoadModel
if (mod->name[0] == '*') // submodel
return mod;
+
+ if (!strcmp(mod->name, "null"))
+ {
+ if (mod->loaded || mod->mempool)
+ Mod_UnloadModel(mod);
+
+ if (developer_loading.integer)
+ Con_Printf("loading model %s\n", mod->name);
+
+ mod->isworldmodel = isworldmodel;
+ mod->used = true;
+ mod->crc = -1;
+ mod->loaded = false;
+
+ VectorClear(mod->normalmins);
+ VectorClear(mod->normalmaxs);
+ VectorClear(mod->yawmins);
+ VectorClear(mod->yawmaxs);
+ VectorClear(mod->rotatedmins);
+ VectorClear(mod->rotatedmaxs);
+
+ mod->modeldatatypestring = "null";
+ mod->type = mod_null;
+ mod->Draw = R_Model_Null_Draw;
+ mod->numframes = 2;
+ mod->numskins = 1;
+
+ // no fatal errors occurred, so this model is ready to use.
+ mod->loaded = true;
+
+ return mod;
+ }
crc = 0;
buf = NULL;
*/
-typedef enum modtype_e {mod_invalid, mod_brushq1, mod_sprite, mod_alias, mod_brushq2, mod_brushq3} modtype_t;
+typedef enum modtype_e {mod_invalid, mod_brushq1, mod_sprite, mod_alias, mod_brushq2, mod_brushq3, mod_null} modtype_t;
typedef struct animscene_s
{