LeavesTrails only works when actor inworld
This commit is contained in:
committed by
Matthias Mailänder
parent
d69dbd2793
commit
8b96b75960
@@ -99,7 +99,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
|
||||
void ITick.Tick(Actor self)
|
||||
{
|
||||
if (IsTraitDisabled)
|
||||
if (!self.IsInWorld || IsTraitDisabled)
|
||||
return;
|
||||
|
||||
wasStationary = !isMoving;
|
||||
|
||||
Reference in New Issue
Block a user