if (num >= cl_max_entities)
{
if (!cl_entities)
- Host_Error("CL_ExpandEntities: cl_entities not initialized\n");
+ Sys_Error("CL_ExpandEntities: cl_entities not initialized\n");
if (num >= MAX_EDICTS)
Host_Error("CL_ExpandEntities: num %i >= %i\n", num, MAX_EDICTS);
oldmaxentities = cl_max_entities;
}
break;
default:
- Host_Error("CL_ParticleRain: unknown type %i (0 = rain, 1 = snow)\n", type);
+ Con_Printf ("CL_ParticleRain: unknown type %i (0 = rain, 1 = snow)\n", type);
}
}
particle_texcoord2f[6] = 1;particle_texcoord2f[7] = v[1];
}
else
- Host_Error("R_DrawParticles: unknown particle orientation %i\n", p->type->orientation);
+ {
+ Con_Printf("R_DrawParticles: unknown particle orientation %i\n", p->type->orientation);
+ return;
+ }
#if WORKINGLQUAKE
if (blendmode == PBLEND_ALPHA)
brush->numplanes = numpoints + 2;
brush->planes = (void *)(brush + 1);
brush->points = (colpointf_t *)points;
- Host_Error("Collision_AllocBrushFromPermanentPolygonFloat: FIXME: this code needs to be updated to generate a mesh...\n");
+ Sys_Error("Collision_AllocBrushFromPermanentPolygonFloat: FIXME: this code needs to be updated to generate a mesh...\n");
return brush;
}
MSG_WriteCoord16i (sb, f);
else
MSG_WriteCoord32f (sb, f);
- //else
- // Host_Error("MSG_WriteCoord: unknown protocol\n");
}
void MSG_WriteVector (sizebuf_t *sb, float *v, protocolversion_t protocol)
// note: this could be removed, if the rendering code allows an empty blend array
if (r->frame1 < 0)
- Host_Error ("CL_LerpAnimation: frame1 is NULL\n");
+ {
+ Con_Printf ("CL_LerpAnimation: frame1 is NULL\n");
+ r->frame1 = 0;
+ }
// check r_lerpmodels and round off very close blend percentages
if (!r_lerpmodels.integer)
return NULL;
if (strlen (name) >= sizeof (sfx->name))
- Host_Error ("S_FindName: sound name too long (%s)", name);
+ {
+ Con_Printf ("S_FindName: sound name too long (%s)", name);
+ return NULL;
+ }
// Look for this sound in the list of known sfx
for (sfx = known_sfx; sfx != NULL; sfx = sfx->next)
if (info.samples)
{
if (samples < info.samples)
- Host_Error ("Sound %s has a bad loop length", name);
+ {
+ Con_Printf ("Sound %s has a bad loop length", name);
+ info.samples = samples;
+ }
}
else
info.samples = samples;
int sound_num, field_mask, i, ent;
if (volume < 0 || volume > 255)
- Host_Error ("SV_StartSound: volume = %i", volume);
+ {
+ Con_Printf ("SV_StartSound: volume = %i", volume);
+ return;
+ }
if (attenuation < 0 || attenuation > 4)
- Host_Error ("SV_StartSound: attenuation = %f", attenuation);
+ {
+ Con_Printf ("SV_StartSound: attenuation = %f", attenuation);
+ return;
+ }
if (channel < 0 || channel > 7)
- Host_Error ("SV_StartSound: channel = %i", channel);
+ {
+ Con_Printf ("SV_StartSound: channel = %i", channel);
+ return;
+ }
if (sv.datagram.cursize > MAX_PACKETFRAGMENT-21)
return;
}
if (!trace.ent)
- Host_Error("SV_FlyMove: !trace.ent");
+ {
+ Con_Printf ("SV_FlyMove: !trace.ent");
+ trace.ent = prog->edicts;
+ }
if (((int) ent->fields.server->flags & FL_ONGROUND) && ent->fields.server->groundentity == PRVM_EDICT_TO_PROG(trace.ent))
impact = false;
}
break;
default:
- Host_Error ("SV_Physics: bad movetype %i", (int)ent->fields.server->movetype);
+ Con_Printf ("SV_Physics: bad movetype %i", (int)ent->fields.server->movetype);
break;
}
ent = PRVM_PROG_TO_EDICT(prog->globals.server->msg_entity);
entnum = PRVM_NUM_FOR_EDICT(ent);
if (entnum < 1 || entnum > svs.maxclients || !svs.clients[entnum-1].active)
- Host_Error("WriteDest: tried to write to non-client\n");
- return &svs.clients[entnum-1].message;
+ {
+ Con_Printf ("WriteDest: tried to write to non-client\n");
+ return &sv.reliable_datagram;
+ }
+ else
+ return &svs.clients[entnum-1].message;
+ default:
+ Con_Printf ("WriteDest: bad destination");
case MSG_ALL:
return &sv.reliable_datagram;
case MSG_INIT:
return &sv.signon;
-
- default:
- Host_Error("WriteDest: bad destination");
- break;
}
return NULL;
int igrid[3], igridmins[3], igridmaxs[3], gridnum, entitynumber = PRVM_NUM_FOR_EDICT(ent);
if (entitynumber <= 0 || entitynumber >= prog->max_edicts || PRVM_EDICT_NUM(entitynumber) != ent)
- Host_Error("SV_LinkEdict_AreaGrid: invalid edict %p (edicts is %p, edict compared to prog->edicts is %i)\n", ent, prog->edicts, entitynumber);
+ {
+ Con_Printf ("SV_LinkEdict_AreaGrid: invalid edict %p (edicts is %p, edict compared to prog->edicts is %i)\n", ent, prog->edicts, entitynumber);
+ return;
+ }
igridmins[0] = (int) ((ent->fields.server->absmin[0] + sv_areagrid_bias[0]) * sv_areagrid_scale[0]);
igridmins[1] = (int) ((ent->fields.server->absmin[1] + sv_areagrid_bias[1]) * sv_areagrid_scale[1]);