From: terencehill Date: Fri, 16 Sep 2016 12:07:21 +0000 (+0200) Subject: Fix bad code indentation X-Git-Tag: xonotic-v0.8.2~578 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=be20a760ec82a9aada33a1fdb9e0de7dc31ada3b;p=xonotic%2Fxonotic-data.pk3dir.git Fix bad code indentation --- 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);