Implement Core.TickCount
Convert movement, actions (lift/use), combat, and spells to use Core.TickCount and avoid DateTime caveats (performance, system time dependency, etc) Refactor DateTime.Now to DateTime.UtcNow Add LOS check for Iron Maiden addon
This commit is contained in:
parent
f99eefb288
commit
d2c670f5c3
241 changed files with 842 additions and 831 deletions
|
|
@ -251,7 +251,7 @@ namespace Server.Gumps
|
|||
AddLabel( 150, 270, LabelHue, Core.ScriptItems.ToString() );
|
||||
|
||||
AddLabel( 20, 290, LabelHue, "Uptime:" );
|
||||
AddLabel( 150, 290, LabelHue, FormatTimeSpan( DateTime.Now - Clock.ServerStart ) );
|
||||
AddLabel( 150, 290, LabelHue, FormatTimeSpan( DateTime.UtcNow - Clock.ServerStart ) );
|
||||
|
||||
AddLabel( 20, 310, LabelHue, "Memory:" );
|
||||
AddLabel( 150, 310, LabelHue, FormatByteAmount( GC.GetTotalMemory( false ) ) );
|
||||
|
|
@ -907,7 +907,7 @@ namespace Server.Gumps
|
|||
}
|
||||
else
|
||||
{
|
||||
TimeSpan remaining = (DateTime.Now - banTime);
|
||||
TimeSpan remaining = (DateTime.UtcNow - banTime);
|
||||
|
||||
if ( remaining < TimeSpan.Zero )
|
||||
remaining = TimeSpan.Zero;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue