From c257229f9ab34d0fd3609634c0b3737e1ef48cee Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 15 Apr 2006 06:45:12 +0000 Subject: [PATCH] prints entity number of MOVETYPE_PUSH entities without models (this is mostly useful to level designers who accidentally left a brushless door lying around) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6279 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_phys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sv_phys.c b/sv_phys.c index 15ee0182..2797f278 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -632,13 +632,13 @@ void SV_PushMove (prvm_edict_t *pusher, float movetime) SV_LinkEdict (pusher, false); return; default: - Con_Printf("SV_PushMove: unrecognized solid type %f\n", pusher->fields.server->solid); + Con_Printf("SV_PushMove: entity #%i, unrecognized solid type %f\n", PRVM_NUM_FOR_EDICT(pusher), pusher->fields.server->solid); return; } index = (int) pusher->fields.server->modelindex; if (index < 1 || index >= MAX_MODELS) { - Con_Printf("SV_PushMove: invalid modelindex %f\n", pusher->fields.server->modelindex); + Con_Printf("SV_PushMove: entity #%i has an invalid modelindex %f\n", PRVM_NUM_FOR_EDICT(pusher), pusher->fields.server->modelindex); return; } pushermodel = sv.models[index]; -- 2.39.2