public static void IsThereVendor( Point3D location, Map map, out bool vendor )
{
vendor = false;
IPooledEnumerable eable = map.GetObjectsInRange( location, 0 );
foreach ( IEntity entity in eable )
{
if ( Math.Abs( location.Z - entity.Z ) <= 16 )
{
if ( entity is PlayerVendor )
{
vendor = true;
break;
}
}
}
eable.Free();
}