From 52c516d549538e38a58f315a2c00a139648277df Mon Sep 17 00:00:00 2001 From: OV2 Date: Sat, 12 Jan 2013 19:25:36 +0100 Subject: [PATCH] Check correct tile cache for blank tiles --- tile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tile.cpp b/tile.cpp index b3ca1900..bbe448ec 100644 --- a/tile.cpp +++ b/tile.cpp @@ -698,7 +698,7 @@ void S9xSelectTileConverter (int depth, bool8 hires, bool8 sub, bool8 mosaic) } #define IS_BLANK_TILE() \ - (BG.Buffered[TileNumber] == BLANK_TILE) + ( ( (Tile & H_FLIP) ? BG.BufferedFlip[TileNumber] : BG.Buffered[TileNumber]) == BLANK_TILE) #define SELECT_PALETTE() \ if (BG.DirectColourMode) \