From: Mario Date: Sun, 30 Jul 2017 06:46:07 +0000 (+1000) Subject: Hopefully fix a disconnect caused by mismatching reads/writes in the next qualifying... X-Git-Tag: xonotic-v0.8.5~2552 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=38cbcd4d9ed347f6a88a074bdedee90a164d4c71;p=xonotic%2Fxonotic-data.pk3dir.git Hopefully fix a disconnect caused by mismatching reads/writes in the next qualifying checkpoint and spectators --- diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index 539461187..c621e9fab 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -1070,11 +1070,12 @@ NET_HANDLE(TE_CSQC_RACE, bool isNew) race_nextcheckpoint = ReadByte(); race_nextbesttime = ReadInt24_t(); - race_mybesttime = ReadInt24_t(); + if(b != RACE_NET_CHECKPOINT_NEXT_SPEC_QUALIFYING) // not while spectating (matches server) + race_mybesttime = ReadInt24_t(); if(race_nextbestname) strunzone(race_nextbestname); string newname = ReadString(); - if(autocvar_cl_race_cptimes_onlyself) + if(autocvar_cl_race_cptimes_onlyself && b != RACE_NET_CHECKPOINT_NEXT_SPEC_QUALIFYING) { race_nextbesttime = race_mybesttime; race_mybesttime = 0;