mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 15:31:39 +00:00
SV_HullForEntity: fix misleading error message "MOVETYPE_PUSH with a non bsp model"
- change this and "SOLID_BSP without MOVETYPE_PUSH" to Host_Error (less annoying) - print classname and origin of entity that caused the error git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1481 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
79aac789be
commit
6b99b37f3e
1 changed files with 4 additions and 2 deletions
|
@ -140,12 +140,14 @@ hull_t *SV_HullForEntity (edict_t *ent, vec3_t mins, vec3_t maxs, vec3_t offset)
|
||||||
if (ent->v.solid == SOLID_BSP)
|
if (ent->v.solid == SOLID_BSP)
|
||||||
{ // explicit hulls in the BSP model
|
{ // explicit hulls in the BSP model
|
||||||
if (ent->v.movetype != MOVETYPE_PUSH)
|
if (ent->v.movetype != MOVETYPE_PUSH)
|
||||||
Sys_Error ("SOLID_BSP without MOVETYPE_PUSH");
|
Host_Error ("SOLID_BSP without MOVETYPE_PUSH (%s at %f %f %f)",
|
||||||
|
PR_GetString(ent->v.classname), ent->v.origin[0], ent->v.origin[1], ent->v.origin[2]);
|
||||||
|
|
||||||
model = sv.models[ (int)ent->v.modelindex ];
|
model = sv.models[ (int)ent->v.modelindex ];
|
||||||
|
|
||||||
if (!model || model->type != mod_brush)
|
if (!model || model->type != mod_brush)
|
||||||
Sys_Error ("MOVETYPE_PUSH with a non bsp model");
|
Host_Error ("SOLID_BSP with a non bsp model (%s at %f %f %f)",
|
||||||
|
PR_GetString(ent->v.classname), ent->v.origin[0], ent->v.origin[1], ent->v.origin[2]);
|
||||||
|
|
||||||
VectorSubtract (maxs, mins, size);
|
VectorSubtract (maxs, mins, size);
|
||||||
if (size[0] < 3)
|
if (size[0] < 3)
|
||||||
|
|
Loading…
Reference in a new issue