diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-30 17:08:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-30 17:30:05 +0300 |
commit | 728223b59f09d1460a092b5fd467c3191fcb46c9 (patch) | |
tree | 489c994a98acddb29d8c1f891a27f50bbd552d2e /src/resources/map/tileinfo.h | |
parent | 0c06037af71273481958ba8587bbb4082d1ed822 (diff) | |
download | plus-728223b59f09d1460a092b5fd467c3191fcb46c9.tar.gz plus-728223b59f09d1460a092b5fd467c3191fcb46c9.tar.bz2 plus-728223b59f09d1460a092b5fd467c3191fcb46c9.tar.xz plus-728223b59f09d1460a092b5fd467c3191fcb46c9.zip |
Improve drawing map layers.
Pre cache repeated tiles count and width.
Diffstat (limited to 'src/resources/map/tileinfo.h')
-rw-r--r-- | src/resources/map/tileinfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/map/tileinfo.h b/src/resources/map/tileinfo.h index 6f31d8eb2..764df0fb4 100644 --- a/src/resources/map/tileinfo.h +++ b/src/resources/map/tileinfo.h @@ -29,11 +29,15 @@ struct TileInfo final { TileInfo() : image(nullptr), + width(0), + count(1), isEnabled(true) { } Image *image; + int width; + int count; bool isEnabled; }; |