Upgrades code style - First batch (#22)

This commit is contained in:
Kamron Batman 2018-08-14 06:16:50 +08:00 committed by GitHub
parent 8ee42c8ea2
commit 632e8b4757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1834 changed files with 10245 additions and 10437 deletions

View file

@ -133,7 +133,7 @@ namespace Server.Regions
{
m_GuardType = DefaultGuardType;
}
public GuardedRegion( XmlElement xml, Map map, Region parent ) : base( xml, map, parent )
{
XmlElement el = xml["guards"];
@ -262,8 +262,7 @@ namespace Server.Regions
if ( IsGuardCandidate( m ) )
{
GuardTimer timer = null;
m_GuardCandidates.TryGetValue( m, out timer );
m_GuardCandidates.TryGetValue( m, out GuardTimer timer );
if ( timer == null )
{
@ -323,8 +322,7 @@ namespace Server.Regions
{
if ( IsGuardCandidate( m ) && ( ( !AllowReds && m.Kills >= 5 && m.Region.IsPartOf( this ) ) || m_GuardCandidates.ContainsKey( m ) ) )
{
GuardTimer timer = null;
m_GuardCandidates.TryGetValue( m, out timer );
m_GuardCandidates.TryGetValue( m, out GuardTimer timer );
if ( timer != null )
{