diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-31 05:04:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-31 17:30:48 +0300 |
commit | 537085e221d25f710ed7162e1fc8add8ffe4a72f (patch) | |
tree | d1abf9cdb898005099eb741a1f6ed79417b331fb /src/resources/map/tileinfo.h | |
parent | 496e74aa95984380e4a36fe8d55d0839002d6f8f (diff) | |
download | plus-537085e221d25f710ed7162e1fc8add8ffe4a72f.tar.gz plus-537085e221d25f710ed7162e1fc8add8ffe4a72f.tar.bz2 plus-537085e221d25f710ed7162e1fc8add8ffe4a72f.tar.xz plus-537085e221d25f710ed7162e1fc8add8ffe4a72f.zip |
Improve fringe map layers drawing.
Pre cache next tile position with image.
Diffstat (limited to 'src/resources/map/tileinfo.h')
-rw-r--r-- | src/resources/map/tileinfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
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; }; |