From: Mario Date: Wed, 5 Oct 2016 10:53:00 +0000 (+1000) Subject: Remove the old weapon stats X-Git-Tag: xonotic-v0.8.2~326^2~58 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1a56e7f68a8ebe5d61782c05eae643c382bf2322;p=xonotic%2Fxonotic-data.pk3dir.git Remove the old weapon stats --- diff --git a/qcsrc/common/stats.qh b/qcsrc/common/stats.qh index 2ecdd06ca..0714f3b97 100644 --- a/qcsrc/common/stats.qh +++ b/qcsrc/common/stats.qh @@ -55,10 +55,6 @@ REGISTER_STAT(PL_CROUCH_MAX, vector, autocvar_sv_player_crouch_maxs) REGISTER_STAT(KH_KEYS, int) -/** weapon requested to switch to; next WANTED weapon (for HUD) */ -REGISTER_STAT(SWITCHWEAPON, int) -/** weapon currently being switched to (is copied from switchweapon once switch is possible) */ -REGISTER_STAT(SWITCHINGWEAPON, int) #ifdef SVQC float W_WeaponRateFactor(entity this); #endif diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index f6cb79a7d..13f6bbad3 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -358,10 +358,6 @@ void PutObserverInServer(entity this) this.oldvelocity = this.velocity; this.fire_endtime = -1; this.event_damage = func_null; - - STAT(ACTIVEWEAPON, this) = WEP_Null.m_id; - STAT(SWITCHINGWEAPON, this) = WEP_Null.m_id; - STAT(SWITCHWEAPON, this) = WEP_Null.m_id; } int player_getspecies(entity this)