- Both linked Rooms are now linked together via the Doorway Manager now. However the 2nd Room does not show the linked effects until the Zone is re-loaded. This will be addressed shortly.
- Rooms no longer install duplicate doorways. If a doorway exists, it removes it and installs the new door.
This commit is contained in:
parent
7da8fcfea9
commit
968ab21e5a
2 changed files with 37 additions and 0 deletions
|
@ -427,6 +427,14 @@ namespace MudDesigner.Editors
|
|||
d.Room = form.linkedRoom.Name;
|
||||
d.Zone = form.linkedZone.Name;
|
||||
door.TravelRoom = d;
|
||||
foreach (Door obj in Program.Room.InstalledDoors)
|
||||
{
|
||||
if (obj.TravelDirection == door.TravelDirection)
|
||||
{
|
||||
Program.Room.InstalledDoors.Remove(obj);
|
||||
break;
|
||||
}
|
||||
}
|
||||
Program.Room.InstalledDoors.Add(door);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue