Fix camera rotation double click bug

This commit is contained in:
2025-01-16 12:26:52 +00:00
parent 881b866ed2
commit 6eacce30fe
+1
View File
@@ -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