Fix space leak (non-strict data fields)
This commit is contained in:
@@ -187,8 +187,12 @@ defaultImpulsive ::
|
||||
Creature ->
|
||||
World ->
|
||||
World
|
||||
defaultImpulsive fs cr = updateRandGen -- . stateUpdate (const id) cr
|
||||
--fmap (fmap updateRandGen) . stateUpdate . impulsiveAIBefore . chainCreatureUpdates
|
||||
defaultImpulsive
|
||||
--xs cr = id
|
||||
-- updateRandGen -- . stateUpdate (const id) cr
|
||||
= fmap (fmap updateRandGen) . stateUpdate . impulsiveAIBefore . chainCreatureUpdates
|
||||
--xs cr = updateRandGen . stateUpdate (const id) cr
|
||||
--xs cr = stateUpdate (const id) cr
|
||||
where
|
||||
updateRandGen w =
|
||||
let (_, g) = randomR (0, 1 :: Int) (_randGen w)
|
||||
|
||||
Reference in New Issue
Block a user