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:
parent
b3f61771cb
commit
d2349164ce
1 changed files with 5 additions and 1 deletions
|
|
@ -332,7 +332,11 @@ namespace Server.Items
|
||||||
|
|
||||||
if ( t != null )
|
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();
|
t.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue