Skip to content

Commit

Permalink
Removed trash code
Browse files Browse the repository at this point in the history
  • Loading branch information
krash84 committed Apr 27, 2015
1 parent 733abbf commit c1b8cf6
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions air-screen-keeper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,30 +47,10 @@ local echo = Spring.Echo

local units = {} -- player's units
local airscreen = {}
local armSpyUDId = UnitDefNames["armspy"].id
local coreSpyUDId = UnitDefNames["corspy"].id
local targets = {}
local spyTimeToBlast = {}
local lastMarkTime = 0
local MARK_DELAY = 3


--[[
function widget:DrawWorldPreUnit()
glLineWidth(3.0)
glDepthTest(true)
glColor(1, 0, 0, .2)
for id, v in pairs(units) do
local posx,posy,posz = Spring.GetUnitPosition(id)
gl.Color(0.5, 0.5, 0.5, 0.5);
gl.DrawGroundCircle(posx, posy, posz, v, 25)
end
glDepthTest(false)
end
--]]
--

local function UnitHasPatrolOrder(unitID)
local queue=spGetCommandQueue(unitID,2)
for i,cmd in ipairs(queue) do
Expand Down Expand Up @@ -105,18 +85,6 @@ local function dispatchUnit(unitID, unitDefID)
if udef.isAirUnit then
units[unitID] = true
end

--[[
--local ud = UnitDefs[unitDefID]
if unitDefID == armSpyUDId or unitDefID == coreSpyUDId then
local udef = UnitDefs[unitDefID]
local selfdBlastId = WeaponDefNames[string.lower(udef["selfDExplosion"])].id
local selfdBlastRadius = WeaponDefs[selfdBlastId]["damageAreaOfEffect"]
units[unitID] = selfdBlastRadius
spyTimeToBlast[unitID] = 0
--echo ("spy detected "..selfdBlastRadius)
end
--]]
end

function updateAirScreenUnits()
Expand Down

0 comments on commit c1b8cf6

Please sign in to comment.