Added: Support for not-synced traits (ITraitNotSynced)

This commit is contained in:
geckosoft
2010-11-01 03:58:46 +01:00
committed by Chris Forbes
parent d050d1a4b9
commit 8392a44314
4 changed files with 59 additions and 1 deletions

View File

@@ -199,7 +199,11 @@ namespace OpenRA
// hash all the traits that tick
foreach (var x in traitDict.ActorsWithTraitMultiple<object>(this))
ret += n++ * (int)x.Actor.ActorID * Sync.CalculateSyncHash(x.Trait);
{
if (x.Trait is ITraitNotSynced) continue;
ret += n++*(int) x.Actor.ActorID*Sync.CalculateSyncHash(x.Trait);
}
// Hash the shared rng
ret += SharedRandom.Last;