Officially deprecate this function.

This commit is contained in:
Matthias Mailänder
2023-05-19 17:07:26 +02:00
committed by Gustas
parent 02e4bfba95
commit b30285e38d
3 changed files with 11 additions and 5 deletions

View File

@@ -8,8 +8,8 @@
]]
CheckForBase = function()
local baseBuildings = Map.ActorsInBox(Map.TopLeft, CFBPoint.CenterPosition, function(actor)
return actor.Type == "fact" or actor.Type == "powr"
local baseBuildings = Map.ActorsInBox(BaseRectTL.CenterPosition, BaseRectBR.CenterPosition, function(actor)
return (actor.Type == "fact" or actor.Type == "powr") and actor.Owner == player
end)
return #baseBuildings >= 2