]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/player.qc
Move networked wepent to a separate entity (fixes server side stuff like nades and...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / player.qc
index 8aa67fc0643bc5c3734e74fb145cde4a8eac72bc..1656ff003b873e10d681b9baaf6370dec8aefbee 100644 (file)
@@ -566,8 +566,8 @@ void PlayerDamage(entity this, entity inflictor, entity attacker, float damage,
                Weapon wep = this.(weaponentity).m_weapon;
                for(int slot = 0; slot < MAX_WEAPONSLOTS; ++slot)
                {
-                       .entity wepent = weaponentities[slot];
-                       wep.wr_playerdeath(wep, this, wepent);
+                       .entity went = weaponentities[slot];
+                       wep.wr_playerdeath(wep, this, went);
                }
 
                RemoveGrapplingHooks(this);
@@ -594,8 +594,8 @@ void PlayerDamage(entity this, entity inflictor, entity attacker, float damage,
                // throw a weapon
                for(int slot = 0; slot < MAX_WEAPONSLOTS; ++slot)
                {
-                       .entity wepent = weaponentities[slot];
-                       SpawnThrownWeapon(this, this.origin + (this.mins + this.maxs) * 0.5, this.(wepent).m_switchweapon.m_id, wepent);
+                       .entity went = weaponentities[slot];
+                       SpawnThrownWeapon(this, this.origin + (this.mins + this.maxs) * 0.5, this.(went).m_switchweapon.m_id, went);
                }
 
                // become fully visible