Only sync projectiles and future synced effects.

This commit is contained in:
Matthias Mailänder
2016-06-04 19:35:26 +02:00
parent 9def6b0f70
commit 71743b3b4a
11 changed files with 56 additions and 41 deletions

View File

@@ -77,20 +77,16 @@ namespace OpenRA.Network
NamesValues = DumpSyncTrait(syncHash.Trait)
});
foreach (var e in orderManager.World.Effects)
foreach (var sync in orderManager.World.SyncedEffects)
{
var sync = e as ISync;
if (sync != null)
{
var hash = Sync.Hash(sync);
if (hash != 0)
report.Effects.Add(new EffectReport()
{
Name = sync.GetType().Name,
Hash = hash,
NamesValues = DumpSyncTrait(sync)
});
}
var hash = Sync.Hash(sync);
if (hash != 0)
report.Effects.Add(new EffectReport()
{
Name = sync.GetType().Name,
Hash = hash,
NamesValues = DumpSyncTrait(sync)
});
}
}