make actors collection sync order-dependent, since the actors themselves are.

This commit is contained in:
Chris Forbes
2010-09-18 18:26:03 +12:00
parent 317007f7ce
commit a1fd84fb15

View File

@@ -173,9 +173,10 @@ namespace OpenRA
{ {
//using (new PerfSample("synchash")) //using (new PerfSample("synchash"))
{ {
int n = 0;
int ret = 0; int ret = 0;
foreach (var a in Actors) foreach (var a in Actors)
ret += (int)a.ActorID * Sync.CalculateSyncHash(a); ret += n++ * (int)a.ActorID * Sync.CalculateSyncHash(a);
return ret; return ret;
} }