From: Mario Date: Mon, 8 Aug 2016 03:47:47 +0000 (+1000) Subject: Also reset observer's weapon stats X-Git-Tag: xonotic-v0.8.2~735 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5db8fb9e34049dbc3f42fdb15995451aae4e857d;p=xonotic%2Fxonotic-data.pk3dir.git Also reset observer's weapon stats --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index c212691db..b9ada9722 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -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)