From 4a26d3f36ef532a9b64d78ae4ce41bb530c9db54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 7 Mar 2013 12:50:18 +0100 Subject: [PATCH] fix AutoTarget sync - ISync interface was missing - UnitStance enum was unhashable --- OpenRA.Mods.RA/AutoTarget.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.RA/AutoTarget.cs b/OpenRA.Mods.RA/AutoTarget.cs index 7a3f5d936a..2e36b823eb 100644 --- a/OpenRA.Mods.RA/AutoTarget.cs +++ b/OpenRA.Mods.RA/AutoTarget.cs @@ -25,13 +25,14 @@ namespace OpenRA.Mods.RA public enum UnitStance { HoldFire, ReturnFire, Defend, AttackAnything }; - public class AutoTarget : INotifyIdle, INotifyDamage, ITick, IResolveOrder + public class AutoTarget : INotifyIdle, INotifyDamage, ITick, IResolveOrder, ISync { readonly AutoTargetInfo Info; readonly AttackBase attack; [Sync] int nextScanTime = 0; - [Sync] public UnitStance stance; + public UnitStance stance; + [Sync] public int stanceNumber { get { return (int)stance; } } public UnitStance predictedStance; /* NOT SYNCED: do not refer to this anywhere other than UI code */ public AutoTarget(Actor self, AutoTargetInfo info)