Fixed bug where infinite production queue does not notify on ready
This commit is contained in:
committed by
Gustas Kažukauskas
parent
44c6747dec
commit
25be2149c1
@@ -488,7 +488,10 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
// Make sure the item hasn't been invalidated between the ProductionItem ticking and this FrameEndTask running
|
||||
if (!Queue.Any(i => i.Done && i.Item == unit.Name))
|
||||
{
|
||||
hasPlayedSound = false;
|
||||
return;
|
||||
}
|
||||
|
||||
var isBuilding = unit.HasTraitInfo<BuildingInfo>();
|
||||
if (isBuilding && !hasPlayedSound)
|
||||
|
||||
Reference in New Issue
Block a user