fix frozen actors not visible under fog

This commit is contained in:
Matthias Mailänder
2014-05-25 09:07:25 +02:00
parent 5eb61dbdd2
commit 683edd2c37
2 changed files with 6 additions and 2 deletions

View File

@@ -54,13 +54,15 @@ namespace OpenRA.Traits
int flashTicks;
public void Tick(World world, Shroud shroud)
{
Visible = false;
Visible = true;
foreach (var pos in Footprint)
{
if (shroud.IsVisible(pos))
{
Visible = true;
Visible = false;
break;
}
}
if (flashTicks > 0)
flashTicks--;