]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix spectator weapon entity
authorMario <mario@smbclan.net>
Tue, 18 Oct 2016 07:20:23 +0000 (17:20 +1000)
committerMario <mario@smbclan.net>
Tue, 18 Oct 2016 07:20:23 +0000 (17:20 +1000)
qcsrc/server/client.qc

index 328917336368c11e38341337543f0d227bf1e2c3..a09c826de094b93e31c35440f0fa0b1dcd31ebb7 100644 (file)
@@ -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)