mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 08:00:51 +00:00
print a warning and recover instead of crashing when the model is null
This commit is contained in:
parent
5b13c1a07d
commit
27ff29214e
1 changed files with 5 additions and 2 deletions
|
@ -522,9 +522,12 @@ CL_LinkPacketEntities (void)
|
|||
|
||||
model = (*ent)->model;
|
||||
|
||||
if (!model)
|
||||
Host_Error ("null model: %d %s\n", s1->number,
|
||||
if (!model) {
|
||||
Con_Printf ("WARNING: null model: %d %s\n", s1->number,
|
||||
cl.model_precache[s1->modelindex]->name);
|
||||
model = (*ent)->model = cl.model_precache[s1->modelindex];
|
||||
cl_entity_model_states[s1->number].model = model;
|
||||
}
|
||||
|
||||
if (model->flags & EF_ROTATE) { // rotate binary objects locally
|
||||
(*ent)->angles[0] = 0;
|
||||
|
|
Loading…
Reference in a new issue