if we've been forced to decloak, don't cut it short with another decloak

This commit is contained in:
Chris Forbes
2010-05-19 18:40:38 +12:00
parent 5c7838bafa
commit a6a1c1aabc

View File

@@ -20,6 +20,7 @@
using System.Collections.Generic;
using System.Linq;
using System;
namespace OpenRA.Traits
{
@@ -49,7 +50,7 @@ namespace OpenRA.Traits
if (remainingTime <= 0)
OnSurface();
remainingTime = (int)(self.Info.Traits.Get<CloakInfo>().CloakDelay * 25);
remainingTime = Math.Max(remainingTime, (int)(self.Info.Traits.Get<CloakInfo>().CloakDelay * 25));
}
public void Attacking(Actor self) { DoSurface(); }