Code cleanup in the Tiberian Dawn Lua scripts.

Uppercase global variables.
Declare local variables.
Remove unused variable.
This commit is contained in:
Matthias Mailänder
2022-09-09 10:13:24 +02:00
committed by Gustas
parent ca45e02265
commit b8e261ff2f
18 changed files with 108 additions and 115 deletions

View File

@@ -91,10 +91,10 @@ GuardBase = 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