Partial fix to jetPack
This commit is contained in:
+1
-2
@@ -100,9 +100,8 @@ updateParticles' w =
|
||||
updateCreatures :: World -> World
|
||||
updateCreatures w = f $ set randGen newG $ set creatures (IM.mapMaybe id crs) w
|
||||
where
|
||||
((f,newG),crs) = IM.mapAccum (\g' cr -> _crUpdate cr w g' (setOldPos cr)) (id,_randGen w)
|
||||
((f,newG),crs) = IM.mapAccum (\g' cr -> _crUpdate cr w g' cr) (id,_randGen w)
|
||||
$ _creatures w
|
||||
setOldPos cr = cr & crOldPos .~ _crPos cr
|
||||
|
||||
|
||||
wallEvents :: World -> World
|
||||
|
||||
Reference in New Issue
Block a user