Cleanup
This commit is contained in:
@@ -104,8 +104,7 @@ updateMouseHeldInGame cfig w = case w ^. input . mouseContext of
|
|||||||
w & input . mouseContext .~ MouseGameRotate (dist (mouseWorldPosW w) (w ^. wCam . camCenter))
|
w & input . mouseContext .~ MouseGameRotate (dist (mouseWorldPosW w) (w ^. wCam . camCenter))
|
||||||
OverInvDragSelect (Just sstart) _ ->
|
OverInvDragSelect (Just sstart) _ ->
|
||||||
let sss = w ^. hud . diSections
|
let sss = w ^. hud . diSections
|
||||||
msel = inverseSelNumPos cfig invDP (w ^. input . mousePos) sss
|
in case inverseSelNumPos cfig invDP (w ^. input . mousePos) sss of
|
||||||
in case msel of
|
|
||||||
Nothing -> w & input . mouseContext . mcoSelEnd .~ Nothing
|
Nothing -> w & input . mouseContext . mcoSelEnd .~ Nothing
|
||||||
Just (i, j)
|
Just (i, j)
|
||||||
| i == fst sstart -> w & input . mouseContext . mcoSelEnd ?~ j
|
| i == fst sstart -> w & input . mouseContext . mcoSelEnd ?~ j
|
||||||
|
|||||||
Reference in New Issue
Block a user