Unstable 1.8.4.0
This commit is contained in:
@@ -39,14 +39,7 @@ namespace Barotrauma
|
||||
|
||||
public void CheckConditionals()
|
||||
{
|
||||
if (Target == null)
|
||||
{
|
||||
IsActive = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
IsActive = LogicalOperator == PropertyConditional.LogicalOperatorType.And ? conditionals.All(c => c.Matches(Target)) : conditionals.Any(c => c.Matches(Target));
|
||||
}
|
||||
IsActive = Target != null && PropertyConditional.CheckConditionals(Target, conditionals, LogicalOperator);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -145,7 +145,6 @@ namespace Barotrauma
|
||||
RelativeOrigin = SourceElement.GetAttributeVector2("origin", new Vector2(0.5f, 0.5f));
|
||||
Depth = SourceElement.GetAttributeFloat("depth", 0.001f);
|
||||
#if CLIENT
|
||||
Identifier = GetIdentifier(SourceElement);
|
||||
AddToList(this);
|
||||
#endif
|
||||
}
|
||||
@@ -282,9 +281,6 @@ namespace Barotrauma
|
||||
size.Y *= sourceRect.Height;
|
||||
RelativeOrigin = SourceElement.GetAttributeVector2("origin", new Vector2(0.5f, 0.5f));
|
||||
Depth = SourceElement.GetAttributeFloat("depth", 0.001f);
|
||||
#if CLIENT
|
||||
Identifier = GetIdentifier(SourceElement);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user