summaryrefslogtreecommitdiff
path: root/src/resources/map/tileinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-30 17:08:56 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-30 17:30:05 +0300
commit728223b59f09d1460a092b5fd467c3191fcb46c9 (patch)
tree489c994a98acddb29d8c1f891a27f50bbd552d2e /src/resources/map/tileinfo.h
parent0c06037af71273481958ba8587bbb4082d1ed822 (diff)
downloadmanaplus-728223b59f09d1460a092b5fd467c3191fcb46c9.tar.gz
manaplus-728223b59f09d1460a092b5fd467c3191fcb46c9.tar.bz2
manaplus-728223b59f09d1460a092b5fd467c3191fcb46c9.tar.xz
manaplus-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.h4
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;
};