]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't modify the old weapon entity when observing
authorMario <mario@smbclan.net>
Sat, 31 Dec 2016 00:41:28 +0000 (10:41 +1000)
committerMario <mario@smbclan.net>
Sat, 31 Dec 2016 00:41:28 +0000 (10:41 +1000)
qcsrc/server/client.qc

index a05999d62987692eca018c02c64c2451c13e7e9e..08fb6d4810f660da4ea7a21b87c2562393c5daaa 100644 (file)
@@ -345,8 +345,6 @@ void PutObserverInServer(entity this)
        {
                if(!this.weaponentities[slot])
                        continue; // first load
-               this.weaponentities[slot].hook_time = 0;
-               this.weaponentities[slot].weaponname = "";
                this.weaponentities[slot] = NULL;
        }
        this.exteriorweaponentity = NULL;