#W# I think the backend for Inns and Static houses are done!
This commit is contained in:
parent
8f44a3fe50
commit
83be03adea
6 changed files with 41 additions and 35 deletions
|
|
@ -158,13 +158,16 @@ namespace Server.Custom.InnRooms
|
|||
|
||||
if (RoomMap != null)
|
||||
{
|
||||
IPooledEnumerable eable = RoomMap.GetItemsInRange(RoomLocation, 12);
|
||||
IPooledEnumerable eable = RoomMap.GetItemsInRange(RoomLocation, 8);
|
||||
foreach (Item item in eable)
|
||||
{
|
||||
if (item is InnExitDoor)
|
||||
{
|
||||
dest = item.Location;
|
||||
break;
|
||||
if (m_RoomArea.Contains(new Point2D(item.X, item.Y)))
|
||||
{
|
||||
dest = item.Location;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
eable.Free();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue