misc branch sync

This commit is contained in:
mark@runuo.com 2013-05-09 21:51:37 +00:00
parent 6b65990cc6
commit f61af43f94
5 changed files with 95 additions and 24 deletions

View file

@ -40,21 +40,7 @@ namespace Server.Engines.MLQuests
m_ForceMap = forceMap;
if ( MLQuestSystem.Debug )
{
bool found = false;
foreach ( Region r in Region.Regions )
{
if ( r.Name == region && ( forceMap == null || r.Map == forceMap ) )
{
found = true;
break;
}
}
if ( !found )
Console.WriteLine( "Warning: QuestArea region '{0}' does not exist (ForceMap = {1})", region, ( forceMap == null ) ? "-null-" : forceMap.ToString() );
}
ValidationQueue<QuestArea>.Add( this );
}
public bool Contains( Mobile mob )
@ -69,5 +55,23 @@ namespace Server.Engines.MLQuests
return reg.IsPartOf( m_RegionName );
}
// Debug method
public void Validate()
{
bool found = false;
foreach ( Region r in Region.Regions )
{
if ( r.Name == m_RegionName && ( m_ForceMap == null || r.Map == m_ForceMap ) )
{
found = true;
break;
}
}
if ( !found )
Console.WriteLine( "Warning: QuestArea region '{0}' does not exist (ForceMap = {1})", m_RegionName, ( m_ForceMap == null ) ? "-null-" : m_ForceMap.ToString() );
}
}
}