Fix leaky path graph creation

This commit is contained in:
2022-06-29 23:17:45 +01:00
parent 84cb830804
commit 1abcf099e2
8 changed files with 65 additions and 28 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ generateLevelFromRoomList gr' w = initWallZoning
, _pathGraphP = pairPath
}
where
path = pairsToGraph dist pairPath
path = pairsToGraph'' pairPath
pairPath = foldMap _rmPath rs
rs = map doRoomShift $ IM.elems rs'
rs'= mapM shuffleRoomPos gr' & evalState $ _randGen w