From a1fd84fb1543503d4a5b3e8404230462b77d98cd Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sat, 18 Sep 2010 18:26:03 +1200 Subject: [PATCH] make actors collection sync order-dependent, since the actors themselves are. --- OpenRA.Game/World.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/World.cs b/OpenRA.Game/World.cs index de83d33f2c..b339a8b85e 100644 --- a/OpenRA.Game/World.cs +++ b/OpenRA.Game/World.cs @@ -173,9 +173,10 @@ namespace OpenRA { //using (new PerfSample("synchash")) { + int n = 0; int ret = 0; foreach (var a in Actors) - ret += (int)a.ActorID * Sync.CalculateSyncHash(a); + ret += n++ * (int)a.ActorID * Sync.CalculateSyncHash(a); return ret; }