From: Mario Date: Tue, 19 Jun 2018 07:01:29 +0000 (+1000) Subject: Make the score comparison result quicker by checking the .playerid of the clientstate... X-Git-Tag: xonotic-v0.8.5~2003 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4ecd2a1d3e7f830c132dc5c6bf58100ed984d11a;p=xonotic%2Fxonotic-data.pk3dir.git Make the score comparison result quicker by checking the .playerid of the clientstate entities, rather than their edict_num --- diff --git a/qcsrc/server/scores.qc b/qcsrc/server/scores.qc index 2cb40a834..af2f4b574 100644 --- a/qcsrc/server/scores.qc +++ b/qcsrc/server/scores.qc @@ -402,7 +402,7 @@ float PlayerScore_Compare(entity t1, entity t2, float strict) }); if (result.x == 0 && strict) - result.x = etof(t1.owner) - etof(t2.owner); + result.x = t1.owner.playerid - t2.owner.playerid; return result.x; }