From b9d66c41246fef56e41f600b5523a5ff1a29a1c8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Apr 2011 18:49:05 +0300 Subject: Improve map loading speed. --- src/map.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index 79c9e8b2b..0c1c5b098 100644 --- a/src/map.h +++ b/src/map.h @@ -433,6 +433,10 @@ class Map : public Properties, public ConfigListener std::string getObjectData(unsigned x, unsigned y, int type); + void indexTilesets(); + + void clearIndexedTilesets(); + protected: friend class Actor; @@ -516,6 +520,9 @@ class Map : public Properties, public ConfigListener float mOpacity; int mOpenGL; int mPvp; + bool mTilesetsIndexed; + Tileset** mIndexedTilesets; + int mIndexedTilesetsSize; SpecialLayer *mSpecialLayer; SpecialLayer *mTempLayer; -- cgit v1.2.3-60-g2f50