Cleanup door mounts, noticed space leak when no debug-display paths

This commit is contained in:
2025-10-25 22:49:37 +01:00
parent cbf0f47b9b
commit 61910785c4
16 changed files with 217550 additions and 864094 deletions
+3 -2
View File
@@ -10,7 +10,6 @@ module Dodge.Data.CWorld (
import Control.Lens
import Data.Aeson
import Data.Aeson.TH
--import Data.Graph.Inductive
import Data.Tile
import Dodge.Data.Camera
import Dodge.Data.LWorld
@@ -19,13 +18,15 @@ import Geometry.ConvexPoly
import Geometry.Data
import qualified Data.Vector as V
import qualified Data.Vector.Unboxed as UV
import qualified Data.IntMap.Strict as IM
data CWorld = CWorld
{ _lWorld :: LWorld
, _cwGen :: CWGen
, _cClock :: Int
, _cwTiles :: [Tile]
, _incGraph :: V.Vector [(Int,SimpleEdge)]
-- , _incGraph :: V.Vector [(Int,SimpleEdge)]
, _incGraph :: V.Vector (IM.IntMap SimpleEdge)
, _incNode :: UV.Vector Point2
, _incEdges :: [(Int,Int)]
, _numberFloorVerxs :: Int
+1 -1
View File
@@ -55,7 +55,7 @@ data PSType
| PutDoor {_putDoorDoor :: Door, _putDoorWall :: Wall}
| RandPS (State StdGen PSType)
| PutForeground ForegroundShape
| PutWorldUpdate (Int -> PlacementSpot -> GenWorld -> GenWorld)
| PutWorldUpdate (Int -> PlacementSpot -> GenWorld -> GenWorld) -- the Int is the roomid
| PutNothing
| PutID {_putID :: Int}
| PutChasm {_putChasmPoly :: [Point2]}
+1 -3
View File
@@ -9,9 +9,7 @@ import Data.Aeson
import Data.Aeson.TH
data MountedObject
= MountedLS Int
| MountedProp Int
| MountedLight Point3 Float Point3
= MountedLight Point3 Float Point3
| MountedSPic SPic
deriving (Eq, Ord, Show, Read) --Generic, Flat)