Use strict-containers for IntMaps
This commit is contained in:
@@ -11,7 +11,7 @@ import qualified IntMapHelp as IM
|
||||
updateLampoid :: Creature -> World -> World
|
||||
updateLampoid cr w = case cr ^?! crType . lampLSID of
|
||||
Nothing -> let i = IM.newKey (_lightSources w)
|
||||
in w & lightSources . at i ?~ lsColPosID lcol (addZ h cpos) i
|
||||
in w & lightSources %~ IM.insert i (lsColPosID lcol (addZ h cpos) i)
|
||||
Just i
|
||||
| _crHP cr < 0 -> w
|
||||
& explosionFlashAt cpos
|
||||
|
||||
Reference in New Issue
Block a user