working on addon chop fix
This commit is contained in:
parent
3c560838ea
commit
79027e9632
2 changed files with 3 additions and 6 deletions
|
|
@ -114,13 +114,11 @@ namespace Server.Items
|
|||
return ( CouldFit( p, map, null, ref houses ) == AddonFitResult.Valid );
|
||||
}
|
||||
|
||||
public AddonFitResult CouldFit( IPoint3D p, Map map, Mobile from, ref List<BaseHouse> houseList )
|
||||
public AddonFitResult CouldFit( IPoint3D p, Map map, Mobile from, ref List<BaseHouse> houses )
|
||||
{
|
||||
if ( Deleted )
|
||||
return AddonFitResult.Blocked;
|
||||
|
||||
List<BaseHouse> houses = new List<BaseHouse>();
|
||||
|
||||
foreach ( AddonComponent c in m_Components )
|
||||
{
|
||||
Point3D p3D = new Point3D( p.X + c.Offset.X, p.Y + c.Offset.Y, p.Z + c.Offset.Z );
|
||||
|
|
@ -164,11 +162,10 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
houseList = houses;
|
||||
return AddonFitResult.Valid;
|
||||
}
|
||||
|
||||
public static bool CheckHouse( Mobile from, Point3D p, Map map, int height, List<BaseHouse> list )
|
||||
public static bool CheckHouse( Mobile from, Point3D p, Map map, int height, ref List<BaseHouse> list )
|
||||
{
|
||||
if ( from == null || from.AccessLevel >= AccessLevel.GameMaster )
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ namespace Server.Items
|
|||
|
||||
Server.Spells.SpellHelper.GetSurfaceTop( ref p );
|
||||
|
||||
List<BaseHouse> houses = null;
|
||||
List<BaseHouse> houses = new List<BaseHouse>;
|
||||
|
||||
AddonFitResult res = addon.CouldFit( p, map, from, ref houses );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue