Fix camera rotation double click bug
This commit is contained in:
@@ -139,6 +139,7 @@ rotateCamera :: Configuration -> World -> World
|
||||
rotateCamera cfig w
|
||||
| Just ltime <- pkeys ^? ix SDL.ButtonLeft
|
||||
, Just rtime <- pkeys ^? ix SDL.ButtonRight
|
||||
, rtime > 0
|
||||
, ltime > rtime =
|
||||
w & wCam . camRot -~ rotation
|
||||
| otherwise = ifConfigWallRotate cfig (w ^. input . mouseButtons) w
|
||||
|
||||
Reference in New Issue
Block a user