]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
added DPPROTOCOL support to svc_version parsing (is svc_version even used?)
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 2 Mar 2001 22:03:33 +0000 (22:03 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 2 Mar 2001 22:03:33 +0000 (22:03 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@168 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index 44525d8ffc2c6cf47a5ab9531520fa6ffd2b1add..6929cb50166bdfb1f2a183c7e2a438ae96621460 100644 (file)
@@ -863,9 +863,17 @@ void CL_ParseServerMessage (void)
                
                case svc_version:
                        i = MSG_ReadLong ();
-                       if (i != PROTOCOL_VERSION && i != 250)
-                               Host_Error ("CL_ParseServerMessage: Server is protocol %i instead of %i\n", i, PROTOCOL_VERSION);
-                       Nehahrademcompatibility = i == 250;
+                       if (i != PROTOCOL_VERSION && i != DPPROTOCOL_VERSION && i != 250)
+                       {
+                               Host_Error ("CL_ParseServerMessage: Server is protocol %i, not %i or %i", i, DPPROTOCOL_VERSION, PROTOCOL_VERSION);
+                               return;
+                       }
+                       Nehahrademcompatibility = false;
+                       if (i == 250)
+                               Nehahrademcompatibility = true;
+                       if (cls.demoplayback && demo_nehahra.value)
+                               Nehahrademcompatibility = true;
+                       dpprotocol = i == DPPROTOCOL_VERSION;
                        break;
                        
                case svc_disconnect: