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
|
|
@ -197,7 +197,7 @@ namespace Server.Misc
|
|||
state.Send( new DeleteResult( DeleteResultType.CharBeingPlayed ) );
|
||||
state.Send( new CharacterListUpdate( acct ) );
|
||||
}
|
||||
else if ( RestrictDeletion && DateTime.Now < (m.CreationTime + DeleteDelay) )
|
||||
else if ( RestrictDeletion && DateTime.UtcNow < (m.CreationTime + DeleteDelay) )
|
||||
{
|
||||
state.Send( new DeleteResult( DeleteResultType.CharTooYoung ) );
|
||||
state.Send( new CharacterListUpdate( acct ) );
|
||||
|
|
@ -306,7 +306,7 @@ namespace Server.Misc
|
|||
Console.WriteLine( "Login: {0}: Past IP limit threshold", e.State );
|
||||
|
||||
using ( StreamWriter op = new StreamWriter( "ipLimits.log", true ) )
|
||||
op.WriteLine( "{0}\tPast IP limit threshold\t{1}", e.State, DateTime.Now );
|
||||
op.WriteLine( "{0}\tPast IP limit threshold\t{1}", e.State, DateTime.UtcNow );
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
@ -370,7 +370,7 @@ namespace Server.Misc
|
|||
Console.WriteLine( "Login: {0}: Past IP limit threshold", e.State );
|
||||
|
||||
using ( StreamWriter op = new StreamWriter( "ipLimits.log", true ) )
|
||||
op.WriteLine( "{0}\tPast IP limit threshold\t{1}", e.State, DateTime.Now );
|
||||
op.WriteLine( "{0}\tPast IP limit threshold\t{1}", e.State, DateTime.UtcNow );
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue