]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
When the player is gibbed inside lava or slime do not inflict any damage to him anymo...
authorterencehill <piuntn@gmail.com>
Wed, 18 Apr 2012 21:03:04 +0000 (23:03 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 18 Apr 2012 21:03:04 +0000 (23:03 +0200)
qcsrc/server/cl_player.qc

index 5a162742387c471883838d67a24a478e21357786..c446d107332d769bb0b3dd1d74f5b39760e3dd29 100644 (file)
@@ -422,6 +422,7 @@ void PlayerCorpseDamage (entity inflictor, entity attacker, float damage, float
                self.alpha = -1;
                self.solid = SOLID_NOT; // restore later
                self.takedamage = DAMAGE_NO; // restore later
+               self.damagedbycontents = FALSE;
        }
 }