From 728223b59f09d1460a092b5fd467c3191fcb46c9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 30 Dec 2016 17:08:56 +0300 Subject: Improve drawing map layers. Pre cache repeated tiles count and width. --- src/resources/map/tileinfo.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/resources/map/tileinfo.h') 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; }; -- cgit v1.2.3-70-g09d2