]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix addstat type parameter, swapped 8 and 2
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 21 Feb 2008 06:03:27 +0000 (06:03 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 21 Feb 2008 06:03:27 +0000 (06:03 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8108 d7cf8633-e32d-0410-b094-e92efae38249

svvm_cmds.c

index a11074cba6ae9d5bbf6cf83fb517d6e997f00b54..d736a7100d918b3b520d8878803943c24154f156 100644 (file)
@@ -1448,11 +1448,11 @@ void VM_SV_UpdateCustomStats (client_t *client, prvm_edict_t *ent, sizebuf_t *ms
                        stats[i+35] = s[12] + s[13] * 256 + s[14] * 65536 + s[15] * 16777216;
                        break;
                //float field sent as-is
-               case 2:
+               case 8:
                        stats[i+32] = PRVM_E_INT(ent, vm_customstats[i].fieldoffset);
                        break;
                //integer value of float field
-               case 8:
+               case 2:
                        stats[i+32] = (int)PRVM_E_FLOAT(ent, vm_customstats[i].fieldoffset);
                        break;
                default: