]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - world.c
physics: fix and refactor unsticking
[xonotic/darkplaces.git] / world.c
diff --git a/world.c b/world.c
index fb70ab02766f01fd3c795672139f1159e385c6b0..a95330fae99a4ba0ed9dc3d138d7038a6dcb9b78 100644 (file)
--- a/world.c
+++ b/world.c
@@ -2063,7 +2063,7 @@ static void World_Physics_Frame_JointFromEntity(world_t *world, prvm_edict_t *ed
                                break;
                        case 0:
                        default:
-                               Sys_Abort("what? but above the joint was valid...\n");
+                               Sys_Error("what? but above the joint was valid...\n");
                                break;
                }
 #undef SETPARAMS
@@ -2624,7 +2624,7 @@ treatasbox:
                        dMassSetCylinderTotal(&mass, massval, 3, radius, length);
                        break;
                default:
-                       Sys_Abort("World_Physics_BodyFromEntity: unrecognized geomtype value %i was accepted by filter\n", solid);
+                       Sys_Error("World_Physics_BodyFromEntity: unrecognized geomtype value %i was accepted by filter\n", solid);
                        // this goto only exists to prevent warnings from the compiler
                        // about uninitialized variables (mass), while allowing it to
                        // catch legitimate uninitialized variable warnings