]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix a bug regarding accidentally killing the hook at the wrong times
authorSamual <samual@xonotic.org>
Wed, 28 Sep 2011 22:04:06 +0000 (18:04 -0400)
committerSamual <samual@xonotic.org>
Wed, 28 Sep 2011 22:04:06 +0000 (18:04 -0400)
qcsrc/server/sv_main.qc

index c4eb965a7d95ec74070568adc3160a192edf89a9..b71245b202f15dc897d0c41b312d58f3b36550c5 100644 (file)
@@ -12,7 +12,7 @@ void CreatureFrame (void)
                if (self.movetype == MOVETYPE_NOCLIP) { continue; }
                
                float vehic = (self.vehicle_flags & VHF_ISVEHICLE);
-               float projectile = (self.projectiledeathtype);
+               float projectile = ((self.projectiledeathtype) || (self.classname == "grapplinghook"));
                
                if (self.watertype <= CONTENT_WATER && self.waterlevel > 0) // workaround a retarded bug made by id software :P (yes, it's that old of a bug)
                {