Fixes implicit ternary expressions
This commit is contained in:
parent
c85b0a740c
commit
ff26dfa375
345 changed files with 1905 additions and 2336 deletions
|
|
@ -91,7 +91,8 @@ namespace Server.Mobiles
|
|||
Kill();
|
||||
return;
|
||||
}
|
||||
else if ( Map != m_Target.Map || !InRange( m_Target, 15 ) )
|
||||
|
||||
if ( Map != m_Target.Map || !InRange( m_Target, 15 ) )
|
||||
{
|
||||
Map fromMap = Map;
|
||||
Point3D from = Location;
|
||||
|
|
@ -110,15 +111,13 @@ namespace Server.Mobiles
|
|||
to = loc;
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
loc.Z = toMap.GetAverageZ( loc.X, loc.Y );
|
||||
|
||||
if ( toMap.CanSpawnMobile( loc ) )
|
||||
{
|
||||
to = loc;
|
||||
break;
|
||||
}
|
||||
loc.Z = toMap.GetAverageZ( loc.X, loc.Y );
|
||||
|
||||
if ( toMap.CanSpawnMobile( loc ) )
|
||||
{
|
||||
to = loc;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue