From: Mario Date: Tue, 18 Oct 2016 07:20:23 +0000 (+1000) Subject: Fix spectator weapon entity X-Git-Tag: xonotic-v0.8.2~326^2~39 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c3a81f00d134b0af3256804ff74d520acd8b3e24;p=xonotic%2Fxonotic-data.pk3dir.git Fix spectator weapon entity --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 328917336..a09c826de 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1686,6 +1686,12 @@ void SpectateCopy(entity this, entity spectatee) setsize(this, spectatee.mins, spectatee.maxs); SetZoomState(this, spectatee.zoomstate); + for(int slot = 0; slot < MAX_WEAPONSLOTS; ++slot) + { + .entity weaponentity = weaponentities[slot]; + this.(weaponentity) = spectatee.(weaponentity); + } + anticheat_spectatecopy(this, spectatee); this.hud = spectatee.hud; if(spectatee.vehicle)