From 6eacce30feeafabbc8f024d638320e742029f81d Mon Sep 17 00:00:00 2001 From: justin Date: Thu, 16 Jan 2025 12:26:52 +0000 Subject: [PATCH] Fix camera rotation double click bug --- src/Dodge/Update/Camera.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Dodge/Update/Camera.hs b/src/Dodge/Update/Camera.hs index 55b92fe64..32632ef85 100644 --- a/src/Dodge/Update/Camera.hs +++ b/src/Dodge/Update/Camera.hs @@ -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