fixing draw order again
This commit is contained in:
parent
146d65ce3b
commit
ad18d241aa
1 changed files with 2 additions and 2 deletions
|
@ -187,8 +187,8 @@ drawTile ai ctx pr pc row col img =
|
|||
drawImage
|
||||
drawPlayer
|
||||
else do
|
||||
if all (\maxr -> pr <= (fromIntegral (floor pr :: Int)) + maxr) maxrs &&
|
||||
all (\minc -> pc >= (fromIntegral (floor pc :: Int)) + minc) mincs
|
||||
if any (\minr -> pr <= (fromIntegral (floor pr :: Int)) + minr) maxrs &&
|
||||
any (\maxc -> pc >= (fromIntegral (floor pc :: Int)) + maxc) mincs
|
||||
then do
|
||||
drawPlayer
|
||||
drawImage
|
||||
|
|
Loading…
Reference in a new issue