]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Slight optimization: check client before real client
authorMario <mario@smbclan.net>
Mon, 7 Aug 2017 08:43:13 +0000 (18:43 +1000)
committerMario <mario@smbclan.net>
Mon, 7 Aug 2017 08:43:13 +0000 (18:43 +1000)
qcsrc/server/g_world.qc

index ccba885f1eab7211098111a9d6eb2ca270ba2a82..73349ecac7503edaae239003cedefb681997881a 100644 (file)
@@ -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);