Remove Either construct over invAdj
This commit is contained in:
@@ -72,9 +72,7 @@ drawInventory sss w cfig =
|
||||
curs = invCursorParams w
|
||||
iextra = fromMaybe mempty $ do
|
||||
inv <- w ^? cWorld . lWorld . creatures . ix 0 . crInv
|
||||
let x = case invAdj inv of
|
||||
Left str -> error $ "drawInventory: " ++ str
|
||||
Right y -> y
|
||||
let x = invAdj inv
|
||||
return $ inventoryExtra sss cfig w x
|
||||
|
||||
drawDIMouseOver :: World -> Picture
|
||||
|
||||
Reference in New Issue
Block a user