Provide HasStance extension method for Stance enum, to avoid overhead of HasFlag method.

This commit is contained in:
RoosterDragon
2015-07-14 20:01:29 +01:00
parent 6113892276
commit 3a0eb5554e
6 changed files with 16 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Mods.Common.Traits
public string TooltipForPlayerStance(Stance stance)
{
if (stance == Stance.None || !GenericVisibility.HasFlag(stance))
if (stance == Stance.None || !GenericVisibility.HasStance(stance))
return Name;
if (GenericStancePrefix && stance == Stance.Ally)