Fix the "Unit Ready" notification playing erroneously

This commit is contained in:
abcdefg30
2017-10-19 23:16:36 +02:00
committed by Paul Chote
parent cfac996438
commit cba7c60f6f
2 changed files with 2 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ namespace OpenRA.Mods.Common.Traits
if (!producers.Any())
{
CancelProduction(unit.Name, 1);
return true;
return false;
}
foreach (var p in producers.Where(p => !p.Actor.IsDisabled()))

View File

@@ -379,7 +379,7 @@ namespace OpenRA.Mods.Common.Traits
if (!self.IsInWorld || self.IsDead)
{
CancelProduction(unit.Name, 1);
return true;
return false;
}
var inits = new TypeDictionary