]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_phys.c
make shrak work (lots of SOLID_BSP/MOVETYPE_PUSH entities with no models)
[xonotic/darkplaces.git] / sv_phys.c
index 628591e23ec569a575412974df229e04a44b1052..74b254b8425a704d26e6fc3a2a341a58d4e05860 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -575,11 +575,15 @@ void SV_PushMove (edict_t *pusher, float movetime)
                SV_LinkEdict (pusher, false);
                return;
        default:
-               Host_Error("SV_PushMove: unrecognized solid type %f\n", pusher->v->solid);
+               Con_DPrintf("SV_PushMove: unrecognized solid type %f\n", pusher->v->solid);
+               return;
        }
        index = (int) pusher->v->modelindex;
        if (index < 1 || index >= MAX_MODELS)
-               Host_Error("SV_PushMove: invalid modelindex %f\n", pusher->v->modelindex);
+       {
+               Con_DPrintf("SV_PushMove: invalid modelindex %f\n", pusher->v->modelindex);
+               return;
+       }
        pushermodel = sv.models[index];
 
        movetime2 = movetime;