Skip to content

Commit

Permalink
C# code style fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
MustaphaTR committed Aug 14, 2024
1 parent c14dc10 commit 39803e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions OpenRA.Mods.GenSDK/Orders/GenericTargeter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public GenericTargeter(string order, int priority, Func<Actor, bool> canTarget,
this.useCursor = useCursor;
}

public string OrderID { get; private set; }
public int OrderPriority { get; private set; }
public string OrderID { get; }
public int OrderPriority { get; }

public bool CanTarget(Actor self, in Target target, ref TargetModifiers modifiers, ref string cursor)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected override bool OnHotkeyActivated(KeyInput e)
.Where(a => a.IsInWorld && a.Owner == player)
.ToList();

if (!collectors.Any())
if (collectors.Count == 0)
return true;

var next = collectors
Expand Down
2 changes: 1 addition & 1 deletion mod.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
MOD_ID="gen"

# The OpenRA engine version to use for this project.
ENGINE_VERSION="2a853b13c65a103edccb38a3c630ccc1bd4e4a70"
ENGINE_VERSION="f076b5cfa535987489e7ab8a5cb4f4dc3067da49"

##############################################################################
# Packaging
Expand Down

0 comments on commit 39803e1

Please sign in to comment.