]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a check to make sure it can't crash (though, something to make sure player actual...
authorMario <mario@smbclan.net>
Thu, 10 Dec 2015 21:10:29 +0000 (07:10 +1000)
committerMario <mario@smbclan.net>
Thu, 10 Dec 2015 21:10:29 +0000 (07:10 +1000)
qcsrc/server/cl_client.qc

index 89cb2718583b980e091644a7f92d8adfa1c19e77..df1b6446f1fbf6800405810086b21b244e4bb2d9 100644 (file)
@@ -1588,7 +1588,8 @@ void player_regen ()
        {
                if(self.vehicle)
                        vehicles_exit(VHEF_RELEASE);
-               self.event_damage(self, self, 1, DEATH_ROT.m_id, self.origin, '0 0 0');
+               if(self.event_damage)
+                       self.event_damage(self, self, 1, DEATH_ROT.m_id, self.origin, '0 0 0');
        }
 
        if (!(self.items & IT_UNLIMITED_WEAPON_AMMO))