edge-case bandaid for disguise kits

this should really be fully rewritten to not be so dependent on the underlying timer state
This commit is contained in:
Mark Sturgill 2014-02-27 13:46:12 -07:00
parent b3f61771cb
commit d2349164ce

View file

@ -332,7 +332,11 @@ namespace Server.Items
if ( t != null )
{
t.Delay = t.Next - DateTime.UtcNow;
TimeSpan ts = t.Next - DateTime.UtcNow;
if (ts < TimeSpan.Zero)
ts = TimeSpan.Zero;
t.Delay = ts;
t.Stop();
}