Skip to content

Commit

Permalink
Fixed bug with reclaim surviving deathnuke
Browse files Browse the repository at this point in the history
Typo in 4th argument (location[1] instead of location[3]). Lets use the
earlier set rect instead.

Fixes FAForever#1265
  • Loading branch information
Crotalus committed May 16, 2016
1 parent a6e8327 commit 130e594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/sim/DamageArea.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ DamageArea = function(instigator, location, radius, damage, type, damageAllies,
end
end

local reclaim = GetReclaimablesInRect(location[1]-radius, location[3]-radius, location[1]+radius, location[1]+radius) or {}
local reclaim = GetReclaimablesInRect(rect) or {}
for _, r in reclaim do
if IsProp(r) and VDist3(r:GetPosition(), location) <= radius then
Damage(instigator, location, r, damage, type)
Expand Down

0 comments on commit 130e594

Please sign in to comment.