Fix client side error when shooting player legs.

This commit is contained in:
JetBoom 2014-12-20 12:20:04 -05:00
parent 6d6f98ba75
commit 358fa13ab3

View file

@ -456,7 +456,7 @@ function GM:ScalePlayerDamage(pl, hitgroup, dmginfo)
end end
end end
if (hitgroup == HITGROUP_LEFTLEG or hitgroup == HITGROUP_RIGHTLEG) and self:PlayerShouldTakeDamage(pl, dmginfo:GetAttacker()) then if SERVER and (hitgroup == HITGROUP_LEFTLEG or hitgroup == HITGROUP_RIGHTLEG) and self:PlayerShouldTakeDamage(pl, dmginfo:GetAttacker()) then
pl:AddLegDamage(dmginfo:GetDamage()) pl:AddLegDamage(dmginfo:GetDamage())
end end
end end