FloatingSpriteEmitter only works when actor inworld
This commit is contained in:
committed by
Matthias Mailänder
parent
cd5eb89ebc
commit
d69dbd2793
@@ -92,7 +92,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
void ITick.Tick(Actor self)
|
||||
{
|
||||
if (IsTraitDisabled)
|
||||
if (!self.IsInWorld || IsTraitDisabled)
|
||||
return;
|
||||
|
||||
if (Info.Duration > 0 && --duration < 0)
|
||||
|
||||
Reference in New Issue
Block a user