From 38cbcd4d9ed347f6a88a074bdedee90a164d4c71 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 30 Jul 2017 16:46:07 +1000 Subject: [PATCH] Hopefully fix a disconnect caused by mismatching reads/writes in the next qualifying checkpoint and spectators --- qcsrc/client/main.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.39.2