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 ccba885..73349ec 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);