Stop camera movement when pausing
This commit is contained in:
+2
-2
@@ -75,7 +75,6 @@ updateUniverse u =
|
||||
. updateUniverseMid
|
||||
. debugEvents
|
||||
. updateMouseContext cfig
|
||||
. over uvWorld (updateCamera cfig)
|
||||
. updateUniverseFirst
|
||||
$ u
|
||||
where
|
||||
@@ -161,10 +160,11 @@ updateUniverseMid u = case _uvScreenLayers u of
|
||||
(sl : _) -> u & uvWorld . unpauseClock .~ 0 & updateUseInputOnScreen sl
|
||||
[] ->
|
||||
(uvWorld . unpauseClock +~ 1) .
|
||||
timeFlowUpdate . updateUseInputInGame $
|
||||
timeFlowUpdate . updateUseInputInGame .
|
||||
over
|
||||
uvWorld
|
||||
(updateMouseInGame (u ^. uvConfig))
|
||||
$ over uvWorld (updateCamera (u ^. uvConfig))
|
||||
u
|
||||
|
||||
timeFlowUpdate :: Universe -> Universe
|
||||
|
||||
Reference in New Issue
Block a user