Don't StartOnThreshold if the trait is disabled.

This commit is contained in:
Mustafa Alperen Seki
2020-08-25 13:44:11 +03:00
committed by abcdefg30
parent 0990caefd7
commit 3ec3eac160

View File

@@ -59,7 +59,7 @@ namespace OpenRA.Mods.Common.Traits
void INotifyAddedToWorld.AddedToWorld(Actor self)
{
if (!Info.StartOnThreshold)
if (!Info.StartOnThreshold || IsTraitDisabled)
return;
var safeTiles = 0;