Fix camera rotation aiming movement bug
This commit is contained in:
@@ -40,7 +40,7 @@ wasdWithAiming w speed i cr
|
|||||||
where
|
where
|
||||||
(mov',dir') = wasdComp (view keys w) w
|
(mov',dir') = wasdComp (view keys w) w
|
||||||
dir = fmap (_cameraRot w +) dir'
|
dir = fmap (_cameraRot w +) dir'
|
||||||
mov = rotateV (negate $ _crDir cr) mov'
|
mov = rotateV (negate $ _crDir cr - _cameraRot w) mov'
|
||||||
isAiming = _posture (_crStance cr) == Aiming
|
isAiming = _posture (_crStance cr) == Aiming
|
||||||
isMoving = mov' /= (0,0)
|
isMoving = mov' /= (0,0)
|
||||||
mouseDir = case w ^? creatures . ix 0 . crInv . ix (_crInvSel (_creatures w IM.! 0))
|
mouseDir = case w ^? creatures . ix 0 . crInv . ix (_crInvSel (_creatures w IM.! 0))
|
||||||
|
|||||||
Reference in New Issue
Block a user