Cleanup
This commit is contained in:
@@ -67,9 +67,9 @@ spaceAction :: World -> World
|
||||
spaceAction w = if _carteDisplay w
|
||||
then w & carteCenter .~ theLoc
|
||||
else case (_inventoryMode w, selectedCloseObject w) of
|
||||
(TopInventory,(Just (_,Left flit))) -> pickUpItem 0 flit w
|
||||
(TopInventory,Just (_,Left flit)) -> pickUpItem 0 flit w
|
||||
--(TopInventory,(Just (_,Right but))) -> updateTopCloseObject (_btID but) $ _btEvent but but w
|
||||
(TopInventory,(Just (_,Right but))) -> _btEvent but but w
|
||||
(TopInventory,Just (_,Right but)) -> _btEvent but but w
|
||||
_ -> w & inventoryMode .~ TopInventory
|
||||
where
|
||||
theLoc = fst (_seenLocations w IM.! _selLocation w) w
|
||||
|
||||
Reference in New Issue
Block a user