From fff7dfbbcecfb8a9b309918ab05a4b06abf06326 Mon Sep 17 00:00:00 2001 From: nek0 Date: Tue, 7 Aug 2018 14:04:12 +0200 Subject: [PATCH] fix drawing order again --- src/MainGame/WorldMap.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MainGame/WorldMap.hs b/src/MainGame/WorldMap.hs index 3d4e47c..ae0b56c 100644 --- a/src/MainGame/WorldMap.hs +++ b/src/MainGame/WorldMap.hs @@ -395,12 +395,14 @@ drawTile ud ctx posanims pr pc row col img = all delimit mb where delimit b + | nnr > fst (matmax b) || nnc < snd (matmin b) = + True | nnr > fst (matmin b) && nnr < fst (matmax b) = nnc < snd (matmin b) | nnc > snd (matmin b) && nnc < snd (matmax b) = nnr > fst (matmax b) | otherwise = - True + False nnr = case mbnds of Just (Boundaries (minr, minc) (maxr, maxc)) -> maxr Nothing -> nr - fromIntegral ((floor nr) :: Int) :: Double