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: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=fb02ef1931fdad487651190e4cedef7cbc069615 Slight optimization: check client before real client --- diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index ccba885f1e..73349ecac7 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);