]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Also reset observer's weapon stats
authorMario <mario@smbclan.net>
Mon, 8 Aug 2016 03:47:47 +0000 (13:47 +1000)
committerMario <mario@smbclan.net>
Mon, 8 Aug 2016 03:47:47 +0000 (13:47 +1000)
qcsrc/server/cl_client.qc

index c212691db7598c912f8841085243c918d7e5db7d..b9ada9722f1ca341cc9000fd977880942b758589 100644 (file)
@@ -351,6 +351,10 @@ 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)