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
@@ -94,10 +94,10 @@ ProduceHarvester = function(building)
|
||||
if building.IsDead or building.Owner ~= Nod then
|
||||
return
|
||||
end
|
||||
if not buildingHarvester then
|
||||
buildingHarvester = true
|
||||
if not BuildingHarvester then
|
||||
BuildingHarvester = true
|
||||
building.Build(HarvesterProductionType, function()
|
||||
buildingHarvester = false
|
||||
BuildingHarvester = false
|
||||
end)
|
||||
end
|
||||
end
|
||||
@@ -158,7 +158,6 @@ ProduceVehicle = function(building)
|
||||
VehicleAttackGroup[#VehicleAttackGroup + 1] = unit[1]
|
||||
|
||||
if #VehicleAttackGroup >= VehicleGroupSize[Difficulty] then
|
||||
|
||||
MoveAndHunt(VehicleAttackGroup, Path)
|
||||
VehicleAttackGroup = { }
|
||||
Trigger.AfterDelay(VehicleProductionCooldown[Difficulty], function() ProduceArty(building) end)
|
||||
|
||||
Reference in New Issue
Block a user