Merge pull request #6310 from pchote/shroud-reset-fix

Fix shroud hash updating.
This commit is contained in:
obrakmann
2014-08-23 10:43:56 +02:00

View File

@@ -73,7 +73,12 @@ namespace OpenRA.Traits
void Invalidate()
{
var oldHash = Hash;
Hash = Sync.hash_player(self.Owner) + self.World.WorldTick * 3;
// Invalidate may be called multiple times in one world tick, which is decoupled from rendering.
if (oldHash == Hash)
Hash += 1;
}
static IEnumerable<CPos> FindVisibleTiles(World world, CPos position, WRange radius)