From: divverent Date: Fri, 11 May 2007 08:14:11 +0000 (+0000) Subject: also send friction/waterfriction as stats X-Git-Tag: xonotic-v0.1.0preview~3185 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dc4ee1ebc1dc0e13dc69ddb89a0f47ccb0d895ec;p=xonotic%2Fdarkplaces.git also send friction/waterfriction as stats git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7265 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index cc13af5a..4c46abae 100644 --- a/sv_main.c +++ b/sv_main.c @@ -1381,6 +1381,8 @@ void SV_WriteClientdataToMessage (client_t *client, prvm_edict_t *ent, sizebuf_t statsf[STAT_MOVEVARS_STEPHEIGHT] = sv_stepheight.value; statsf[STAT_MOVEVARS_AIRACCEL_QW] = sv_airaccel_qw.value; statsf[STAT_MOVEVARS_AIRACCEL_SIDEWAYS_FRICTION] = sv_airaccel_sideways_friction.value; + statsf[STAT_MOVEVARS_FRICTION] = sv_friction.value; + statsf[STAT_MOVEVARS_WATERFRICTION] = sv_waterfriction.value >= 0 ? sv_waterfriction.value : sv_friction.value; if (sv.protocol == PROTOCOL_QUAKE || sv.protocol == PROTOCOL_QUAKEDP || sv.protocol == PROTOCOL_NEHAHRAMOVIE || sv.protocol == PROTOCOL_DARKPLACES1 || sv.protocol == PROTOCOL_DARKPLACES2 || sv.protocol == PROTOCOL_DARKPLACES3 || sv.protocol == PROTOCOL_DARKPLACES4 || sv.protocol == PROTOCOL_DARKPLACES5) {