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
|
drawImage
|
||||||
drawPlayer
|
drawPlayer
|
||||||
else do
|
else do
|
||||||
if all (\maxr -> pr <= (fromIntegral (floor pr :: Int)) + maxr) maxrs &&
|
if any (\minr -> pr <= (fromIntegral (floor pr :: Int)) + minr) maxrs &&
|
||||||
all (\minc -> pc >= (fromIntegral (floor pc :: Int)) + minc) mincs
|
any (\maxc -> pc >= (fromIntegral (floor pc :: Int)) + maxc) mincs
|
||||||
then do
|
then do
|
||||||
drawPlayer
|
drawPlayer
|
||||||
drawImage
|
drawImage
|
||||||
|
|
Loading…
Reference in a new issue