Fix the "Unit Ready" notification playing erroneously
This commit is contained in:
@@ -101,7 +101,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
if (!producers.Any())
|
if (!producers.Any())
|
||||||
{
|
{
|
||||||
CancelProduction(unit.Name, 1);
|
CancelProduction(unit.Name, 1);
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var p in producers.Where(p => !p.Actor.IsDisabled()))
|
foreach (var p in producers.Where(p => !p.Actor.IsDisabled()))
|
||||||
|
|||||||
@@ -379,7 +379,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
if (!self.IsInWorld || self.IsDead)
|
if (!self.IsInWorld || self.IsDead)
|
||||||
{
|
{
|
||||||
CancelProduction(unit.Name, 1);
|
CancelProduction(unit.Name, 1);
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var inits = new TypeDictionary
|
var inits = new TypeDictionary
|
||||||
|
|||||||
Reference in New Issue
Block a user