From: FruitieX Date: Tue, 29 Jun 2010 00:18:39 +0000 (+0300) Subject: wow, why was there two GiveFrags() calls? No wonder you got -2 points when suiciding... X-Git-Tag: xonotic-v0.1.0preview~457^2~74 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9b966b9b0df086275c51f23fc89b6f75ac9e1dcd;p=xonotic%2Fxonotic-data.pk3dir.git wow, why was there two GiveFrags() calls? No wonder you got -2 points when suiciding... --- diff --git a/qcsrc/server/g_damage.qc b/qcsrc/server/g_damage.qc index 30e49cd56..3431129c3 100644 --- a/qcsrc/server/g_damage.qc +++ b/qcsrc/server/g_damage.qc @@ -294,11 +294,6 @@ void Obituary (entity attacker, entity inflictor, entity targ, float deathtype) msg = ColoredTeamName(targ.team); // TODO: check if needed? Send_CSQC_Centerprint(targ, msg, "", deathtype, MSG_SUICIDE); - if(deathtype != DEATH_TEAMCHANGE && deathtype != DEATH_QUIET) - { - LogDeath("suicide", deathtype, targ, targ); - GiveFrags(attacker, targ, -1); - } // TODO: hmm? /* if (targ.killcount > 2)