Code cleanup in the Tiberian Dawn Lua scripts.
Uppercase global variables. Declare local variables. Remove unused variable.
This commit is contained in:
committed by
Gustas
parent
ca45e02265
commit
b8e261ff2f
@@ -68,10 +68,10 @@ CheckForHarvester = function()
|
||||
end
|
||||
|
||||
ProduceHarvester = function(building)
|
||||
if not buildingHarvester then
|
||||
buildingHarvester = true
|
||||
if not BuildingHarvester then
|
||||
BuildingHarvester = true
|
||||
building.Build(HarvesterProductionType, function()
|
||||
buildingHarvester = false
|
||||
BuildingHarvester = false
|
||||
end)
|
||||
end
|
||||
end
|
||||
@@ -139,23 +139,23 @@ Trigger.OnAllKilledOrCaptured(GDIBase, function()
|
||||
Utils.Do(GDI.GetGroundAttackers(), IdleHunt)
|
||||
end)
|
||||
|
||||
Trigger.OnKilled(GDIProc, function(building)
|
||||
Trigger.OnKilled(GDIProc, function()
|
||||
BuildBuilding(BaseProc, GDICYard)
|
||||
end)
|
||||
|
||||
Trigger.OnKilled(GDINuke1, function(building)
|
||||
Trigger.OnKilled(GDINuke1, function()
|
||||
BuildBuilding(BaseNuke1, GDICYard)
|
||||
end)
|
||||
|
||||
Trigger.OnKilled(GDINuke2, function(building)
|
||||
Trigger.OnKilled(GDINuke2, function()
|
||||
BuildBuilding(BaseNuke2, GDICYard)
|
||||
end)
|
||||
|
||||
Trigger.OnKilled(GDINuke3, function(building)
|
||||
Trigger.OnKilled(GDINuke3, function()
|
||||
BuildBuilding(BaseNuke3, GDICYard)
|
||||
end)
|
||||
|
||||
Trigger.OnKilled(GDIPyle, function(building)
|
||||
Trigger.OnKilled(GDIPyle, function()
|
||||
BuildBuilding(InfantryProduction, GDICYard)
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user