]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Hopefully fix a disconnect caused by mismatching reads/writes in the next qualifying...
authorMario <mario@smbclan.net>
Sun, 30 Jul 2017 06:46:07 +0000 (16:46 +1000)
committerMario <mario@smbclan.net>
Sun, 30 Jul 2017 06:46:07 +0000 (16:46 +1000)
qcsrc/client/main.qc

index 539461187e6fadf95f05a31adb55337016e56325..c621e9fab3c9bf3f9024e2f0603aa7ac7dce5d26 100644 (file)
@@ -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;