From: FruitieX Date: Tue, 9 Nov 2010 19:14:32 +0000 (+0200) Subject: don't store a record if the player does not have a UID X-Git-Tag: xonotic-v0.1.0preview~131^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ec00274318b43ccf6c89440b539142fb21fe16cd;p=xonotic%2Fxonotic-data.pk3dir.git don't store a record if the player does not have a UID --- diff --git a/qcsrc/server/race.qc b/qcsrc/server/race.qc index 3786edbe5..27f32be83 100644 --- a/qcsrc/server/race.qc +++ b/qcsrc/server/race.qc @@ -167,6 +167,13 @@ void race_setTime(string map, float t, string myuid, string mynetname, entity e) // if we didn't hit a return yet, we have a new record! + // if the player does not have a UID we can unfortunately not store the record, as the rankings system relies on UIDs + if(myuid == "") + { + bprint(mynetname, "^1 scored a new record with ^7", TIME_ENCODED_TOSTRING(t), "^1, but lacks a UID, so the record will unfortunately be lost.\n"); + return; + } + oldrec = race_readTime(GetMapname(), newpos); oldrec_holder = race_readName(GetMapname(), newpos);