Improve level generation speed
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ updateWallZoning w = set wallsZone (foldl' (flip wallInZone) IM.empty (_walls w)
|
||||
where
|
||||
(x,y) = zoneOfPoint $ uncurry pHalf (_wlLine wl)
|
||||
wlid = _wlID wl
|
||||
ips = map zoneOfPoint $ uncurry (divideLine (zoneSize)) (_wlLine wl)
|
||||
ips = map zoneOfPoint $ uncurry (divideLine zoneSize) (_wlLine wl)
|
||||
|
||||
|
||||
makePath :: Tree Room -> [(Point2,Point2)]
|
||||
|
||||
Reference in New Issue
Block a user