mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
a little more info on bad models/solid settings
This commit is contained in:
parent
01f7bd440e
commit
3528e803c1
1 changed files with 8 additions and 2 deletions
|
@ -167,12 +167,18 @@ SV_HullForEntity (edict_t *ent, const vec3_t mins, const vec3_t maxs,
|
|||
} if (SVfloat (ent, solid) == SOLID_BSP) {
|
||||
// explicit hulls in the BSP model
|
||||
if (SVfloat (ent, movetype) != MOVETYPE_PUSH)
|
||||
Sys_Error ("SOLID_BSP without MOVETYPE_PUSH");
|
||||
Sys_Error ("SOLID_BSP without MOVETYPE_PUSH: %d %s",
|
||||
NUM_FOR_EDICT (&sv_pr_state, ent),
|
||||
PR_GetString (&sv_pr_state,
|
||||
SVstring (ent, classname)));
|
||||
|
||||
model = sv.models[(int) SVfloat (ent, modelindex)];
|
||||
|
||||
if (!model || model->type != mod_brush)
|
||||
Sys_Error ("SOLID_BSP with a non bsp model");
|
||||
Sys_Error ("SOLID_BSP with a non bsp model: %d %s",
|
||||
NUM_FOR_EDICT (&sv_pr_state, ent),
|
||||
PR_GetString (&sv_pr_state,
|
||||
SVstring (ent, classname)));
|
||||
|
||||
hull = &model->hulls[hull_index];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue