From 3528e803c11567d0ca6166f445c6e0fd994fcc58 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 8 May 2007 11:21:56 +0000 Subject: [PATCH] a little more info on bad models/solid settings --- qw/source/world.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/qw/source/world.c b/qw/source/world.c index f6dd07a9f..09e4efc3f 100644 --- a/qw/source/world.c +++ b/qw/source/world.c @@ -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]; }