]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove the old weapon stats
authorMario <mario@smbclan.net>
Wed, 5 Oct 2016 10:53:00 +0000 (20:53 +1000)
committerMario <mario@smbclan.net>
Wed, 5 Oct 2016 10:53:00 +0000 (20:53 +1000)
qcsrc/common/stats.qh
qcsrc/server/client.qc

index 2ecdd06ca75ab7fa2cbbda01ab5fb0dab8eac2eb..0714f3b97fcb409905798272ff44d7ee39803c11 100644 (file)
@@ -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
index f6cb79a7dce3d44badc978dfc73c29d1b47ac9c1..13f6bbad39cf80883c611f3ecd70f6363b8b2450 100644 (file)
@@ -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)