From 537085e221d25f710ed7162e1fc8add8ffe4a72f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 31 Dec 2016 05:04:16 +0300 Subject: Improve fringe map layers drawing. Pre cache next tile position with image. --- src/resources/map/tileinfo.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resources/map/tileinfo.h') diff --git a/src/resources/map/tileinfo.h b/src/resources/map/tileinfo.h index 764df0fb4..a15a5dc01 100644 --- a/src/resources/map/tileinfo.h +++ b/src/resources/map/tileinfo.h @@ -31,13 +31,20 @@ struct TileInfo final image(nullptr), width(0), count(1), + nextTile(1), isEnabled(true) { } + /* tile image */ Image *image; + /* repeated tile width in pixels */ int width; + /* repeated tiles count - 1 */ int count; + /* number of tiles to get next tile */ + int nextTile; + /* is tile enabled flag. if set to true, also mean image is non null */ bool isEnabled; }; -- cgit v1.2.3-60-g2f50