Allow for concurrent effects
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ import Sound.Data
|
||||
|
||||
{- For most menus the only way to change the world is using event handling. -}
|
||||
updateUniverse :: Universe -> Universe
|
||||
updateUniverse u = case _menuLayers u of
|
||||
updateUniverse u = (uvConcEffects .~ Nothing) $ case _menuLayers u of
|
||||
(WaitScreen s i : _)
|
||||
| i < 1 -> u & over uvWorld doWorldEvents
|
||||
| otherwise -> u & menuLayers %~ ((WaitScreen s (i -1) :) . tail)
|
||||
|
||||
Reference in New Issue
Block a user