]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix negative frags showing up as 65535 and such
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Oct 2004 18:50:30 +0000 (18:50 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Oct 2004 18:50:30 +0000 (18:50 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4589 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index 8eed400f497d784cbbd83bc7db4589b02d45e6ad..a93c505a2a726ef5e85c8a613443f8db01f0cf22 100644 (file)
@@ -1487,7 +1487,7 @@ void CL_ParseServerMessage(void)
                        i = MSG_ReadByte ();
                        if (i >= cl.maxclients)
                                Host_Error ("CL_ParseServerMessage: svc_updatefrags >= cl.maxclients");
-                       cl.scores[i].frags = (unsigned short) MSG_ReadShort ();
+                       cl.scores[i].frags = (signed short) MSG_ReadShort ();
                        break;
 
                case svc_updatecolors: