diff --git a/CompassPoint.cs b/CompassPoint.cs index a59b186d..af965f01 100644 --- a/CompassPoint.cs +++ b/CompassPoint.cs @@ -32,7 +32,6 @@ namespace Trizbort /// public enum CompassPoint { - None, North, NorthNorthEast, NorthEast, diff --git a/Room.cs b/Room.cs index 3bef8287..fdce4591 100644 --- a/Room.cs +++ b/Room.cs @@ -945,10 +945,10 @@ public void Load(XmlElementReader element) public List GetConnections() { - return GetConnections(CompassPoint.None); + return GetConnections(null); } - public List GetConnections(CompassPoint compassPoint) + public List GetConnections(CompassPoint? compassPoint) { var connections = new List(); @@ -964,7 +964,7 @@ public List GetConnections(CompassPoint compassPoint) var compassPort = (CompassPort) vertex.Port; - if (compassPoint == CompassPoint.None) + if (compassPoint == null) connections.Add(connection); else if (compassPort.CompassPoint == compassPoint)