cleanup: Fixes bugs and cleans up code (#660)
This commit is contained in:
parent
1de0b656a9
commit
679e8100f4
99 changed files with 160 additions and 346 deletions
|
|
@ -161,7 +161,7 @@ namespace Server.Items
|
|||
return AddonFitResult.Blocked;
|
||||
}
|
||||
|
||||
if (!CheckHouse(from, p3D, map, c.ItemData.Height, ref house))
|
||||
if (!CheckHouse(from, p3D, map, c.ItemData.Height, out house))
|
||||
{
|
||||
return AddonFitResult.NotInHouse;
|
||||
}
|
||||
|
|
@ -203,7 +203,7 @@ namespace Server.Items
|
|||
return AddonFitResult.Valid;
|
||||
}
|
||||
|
||||
public static bool CheckHouse(Mobile from, Point3D p, Map map, int height, ref BaseHouse house)
|
||||
public static bool CheckHouse(Mobile from, Point3D p, Map map, int height, out BaseHouse house)
|
||||
{
|
||||
house = BaseHouse.FindHouseAt(p, map, height);
|
||||
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@ namespace Server.Items
|
|||
return AddonFitResult.Blocked;
|
||||
}
|
||||
|
||||
if (!BaseAddon.CheckHouse(from, p3D, map, c.ItemData.Height, ref house))
|
||||
if (!BaseAddon.CheckHouse(from, p3D, map, c.ItemData.Height, out house))
|
||||
{
|
||||
return AddonFitResult.NotInHouse;
|
||||
}
|
||||
|
|
@ -269,7 +269,7 @@ namespace Server.Items
|
|||
return AddonFitResult.Blocked;
|
||||
}
|
||||
|
||||
if (!BaseAddon.CheckHouse(from, p3, map, ItemData.Height, ref house))
|
||||
if (!BaseAddon.CheckHouse(from, p3, map, ItemData.Height, out house))
|
||||
{
|
||||
return AddonFitResult.NotInHouse;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using Server.Mobiles;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue