Fix RepairBuilding not working for AI and Lua scripts

Fixes #5861
This commit is contained in:
Oliver Brakmann
2014-07-07 19:08:25 +02:00
parent b8756d9de7
commit 33b916a713
3 changed files with 7 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Mods.RA.Buildings
Health Health;
RepairableBuildingInfo Info;
public bool RepairActive = true;
public bool RepairActive = false;
public RepairableBuilding(Actor self, RepairableBuildingInfo info)
{
@@ -102,6 +102,7 @@ namespace OpenRA.Mods.RA.Buildings
if (Health.DamageState == DamageState.Undamaged)
{
Repairers.Clear();
RepairActive = false;
return;
}