X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_hook.qc;h=b08ef098609732a67a18effdfd6e094d7f1f4a3e;hb=02bdc3f123932f71f2f9456fa56f2107f69caedf;hp=5561c2df93ffa1bfea9b27361feab4f51c7507ca;hpb=e53a561cca4d6780e8df8451a674ca92fb867c81;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_hook.qc b/qcsrc/server/g_hook.qc index 5561c2df9..b08ef0986 100644 --- a/qcsrc/server/g_hook.qc +++ b/qcsrc/server/g_hook.qc @@ -116,9 +116,9 @@ void GrapplingHookThink() { float spd, dist, minlength, pullspeed, ropestretch, ropeairfriction, rubberforce, newlength, rubberforce_overstretch, s; vector dir, org, end, v0, dv, v, myorg, vs; - if(self.realowner.health <= 0 || self.realowner.hook != self) // how did that happen? - { // well, better fix it anyway - remove(self); + if(self.realowner.hook != self) // how did that happen? + { + error("Owner lost the hook!\n"); return; } if(LostMovetypeFollow(self)) @@ -292,8 +292,8 @@ void GrapplingHook_Damage (entity inflictor, entity attacker, float damage, floa void FireGrapplingHook (void) { - local entity missile; - local vector org; + entity missile; + vector org; float s; vector vs;