From be20a760ec82a9aada33a1fdb9e0de7dc31ada3b Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 16 Sep 2016 14:07:21 +0200 Subject: [PATCH] Fix bad code indentation --- qcsrc/server/player.qc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qcsrc/server/player.qc b/qcsrc/server/player.qc index e95ae9819..e270f38df 100644 --- a/qcsrc/server/player.qc +++ b/qcsrc/server/player.qc @@ -555,9 +555,8 @@ void PlayerDamage(entity this, entity inflictor, entity attacker, float damage, // increment frag counter for used weapon type Weapon w = DEATH_WEAPONOF(deathtype); - if(w != WEP_Null) - if(accuracy_isgooddamage(attacker, this)) - attacker.accuracy.(accuracy_frags[w.m_id-1]) += 1; + if(w != WEP_Null && accuracy_isgooddamage(attacker, this)) + attacker.accuracy.(accuracy_frags[w.m_id-1]) += 1; MUTATOR_CALLHOOK(PlayerDies, inflictor, attacker, this, deathtype, damage); excess = M_ARGV(4, float); @@ -685,7 +684,7 @@ void dedicated_print(string input) */ int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodcontrol) { - if (!teamsay && !privatesay) if (substring(msgin, 0, 1) == " ") + if (!teamsay && !privatesay && substring(msgin, 0, 1) == " ") msgin = substring(msgin, 1, -1); // work around DP say bug (say_team does not have this!) msgin = formatmessage(source, msgin); -- 2.39.2