Use fromDistinctAscList rather than fromAscList
This commit is contained in:
+1
-1
@@ -146,7 +146,7 @@ setupWorldBounds w =
|
||||
wallsFromRooms :: [Room] -> IM.IntMap Wall
|
||||
wallsFromRooms =
|
||||
-- divideWalls .
|
||||
IM.fromAscList
|
||||
IM.fromDistinctAscList
|
||||
. zipWith f [0 ..]
|
||||
. removeInverseWalls
|
||||
. foldl' (flip cutWalls) []
|
||||
|
||||
Reference in New Issue
Block a user