From: Mario Date: Mon, 7 Aug 2017 08:43:13 +0000 (+1000) Subject: Slight optimization: check client before real client X-Git-Tag: xonotic-v0.8.5~2533 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fb02ef1931fdad487651190e4cedef7cbc069615;p=xonotic%2Fxonotic-data.pk3dir.git Slight optimization: check client before real client --- diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index ccba885f1..73349ecac 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -53,7 +53,7 @@ void PingPLReport_Think(entity this) this.nextthink = time + delta; e = edict_num(this.cnt + 1); - if(IS_REAL_CLIENT(e) && IS_CLIENT(e)) + if(IS_CLIENT(e) && IS_REAL_CLIENT(e)) { WriteHeader(MSG_BROADCAST, TE_CSQC_PINGPLREPORT); WriteByte(MSG_BROADCAST, this.cnt);