From 88124a20554e25662b6ff49e23d52de350701a80 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 21 Feb 2008 06:03:27 +0000 Subject: [PATCH] fix addstat type parameter, swapped 8 and 2 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8108 d7cf8633-e32d-0410-b094-e92efae38249 --- svvm_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svvm_cmds.c b/svvm_cmds.c index a11074cb..d736a710 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -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: -- 2.39.2