Attempt to fix some space leaks, general cleanup
This commit is contained in:
@@ -187,7 +187,8 @@ defaultImpulsive ::
|
||||
Creature ->
|
||||
World ->
|
||||
World
|
||||
defaultImpulsive = fmap (fmap updateRandGen) . stateUpdate . impulsiveAIBefore . chainCreatureUpdates
|
||||
defaultImpulsive fs cr = updateRandGen -- . stateUpdate (const id) cr
|
||||
--fmap (fmap updateRandGen) . stateUpdate . impulsiveAIBefore . chainCreatureUpdates
|
||||
where
|
||||
updateRandGen w =
|
||||
let (_, g) = randomR (0, 1 :: Int) (_randGen w)
|
||||
|
||||
Reference in New Issue
Block a user