Fix bugs in zoning
This commit is contained in:
+7
-4
@@ -158,12 +158,15 @@ zoneClouds w =
|
||||
|
||||
updateWorldSelect :: World -> World
|
||||
updateWorldSelect w = f . g $ case (w ^? mouseButtons . ix ButtonLeft, w ^? mouseButtons . ix ButtonRight) of
|
||||
(Nothing, Nothing) -> w
|
||||
(Just False, Nothing) -> w & lLine . _1 .~ mwp
|
||||
& lrLine . _1 .~ mwp
|
||||
(Just True, Nothing) -> w & lLine . _2 .~ mwp
|
||||
(Nothing, _) -> w
|
||||
(Just False, _) -> w & rLine . _1 .~ mwp
|
||||
(Just True, _) -> w & rLine . _2 .~ mwp
|
||||
& lrLine . _1 .~ mwp
|
||||
(Nothing,Just False) -> w & rLine . _1 .~ mwp
|
||||
& lrLine . _2 .~ mwp
|
||||
(Nothing,Just True) -> w & rLine . _2 .~ mwp
|
||||
& lrLine . _2 .~ mwp
|
||||
_ -> w
|
||||
where
|
||||
mwp = mouseWorldPos w
|
||||
f
|
||||
|
||||
Reference in New Issue
Block a user