From: Samual Lenks Date: Mon, 4 Mar 2013 01:59:54 +0000 (-0500) Subject: Other fixes X-Git-Tag: xonotic-v0.7.0~62^2~23^2~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c10617dc2bbec6de918f4432cde47ae566f3c49b;p=xonotic%2Fxonotic-data.pk3dir.git Other fixes --- diff --git a/qcsrc/server/g_damage.qc b/qcsrc/server/g_damage.qc index 73882c085..53d547bfc 100644 --- a/qcsrc/server/g_damage.qc +++ b/qcsrc/server/g_damage.qc @@ -304,8 +304,7 @@ float Obituary_WeaponDeath(entity notif_target, float murder, float deathtype, s else { dprint(sprintf( - "Obituary_WeaponDeath(): ^1Deathtype ^7(%s-%d)^1 has no notification for weapon %d!\n", - Deathtype_Name(deathtype), + "Obituary_WeaponDeath(): ^1Deathtype ^7(%d)^1 has no notification for weapon %d!\n", deathtype, death_weapon )); @@ -319,7 +318,7 @@ float Obituary_WeaponDeath(entity notif_target, float murder, float deathtype, s void Obituary(entity attacker, entity inflictor, entity targ, float deathtype) { // Sanity check - if not(targ.classname == STR_PLAYER) { backtrace("Obituary called on non-player?!\n"); return; } + if not(IS_PLAYER(targ)) { backtrace("Obituary called on non-player?!\n"); return; } // Declarations float notif_firstblood = FALSE;