Fix bug determining max radius of convex polys, fixes bugs in room positioning

This commit is contained in:
2022-03-21 07:43:27 +00:00
parent 2a5b6d3597
commit d6285c45b3
12 changed files with 80 additions and 32 deletions
+5 -1
View File
@@ -10,6 +10,7 @@ import Dodge.Creature
import Dodge.WorldEvent.Cloud
import Dodge.SoundLogic
import Geometry.Data
import Geometry.ConvexPoly
import System.Random
import qualified Data.Set as S
@@ -42,4 +43,7 @@ initialWorld = defaultWorld
testStringInit :: World -> [String]
--testStringInit = map (concatMap $ \(_,ct,_,_) -> show ct) . invertListInvMult . yourInv
testStringInit = const []
testStringInit w = [show $ f $ _roomClipping w]
where
f (x:xs) = any (convexPolysOverlap x) xs || f xs
f [] = False