From 32014de9008efe051a1a8b05e5e976a4629b34d2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 30 Jun 2011 23:14:59 +0300 Subject: Replace some lists to vectors. --- src/map.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index 1cf0da559..fb06c26a6 100644 --- a/src/map.h +++ b/src/map.h @@ -92,7 +92,7 @@ class MapObject class MapObjectList { public: - std::list objects; + std::vector objects; }; /** @@ -107,7 +107,7 @@ class TileAnimation void addAffectedTile(MapLayer *layer, int index) { mAffected.push_back(std::make_pair(layer, index)); } private: - std::list > mAffected; + std::vector > mAffected; SimpleAnimation *mAnimation; Image *mLastImage; }; @@ -427,7 +427,7 @@ class Map : public Properties, public ConfigListener void updatePortalTile(const std::string &name, int type, int x, int y, bool addNew = true); - std::list &getPortals() + std::vector &getPortals() { return mMapPortals; } /** @@ -521,8 +521,8 @@ class Map : public Properties, public ConfigListener unsigned mOnClosedList, mOnOpenList; // Overlay data - std::list mBackgrounds; - std::list mForegrounds; + std::vector mBackgrounds; + std::vector mForegrounds; float mLastScrollX; float mLastScrollY; // bool mSpritesUpdated; @@ -538,7 +538,7 @@ class Map : public Properties, public ConfigListener }; std::vector particleEffects; - std::list mMapPortals; + std::vector mMapPortals; std::map mTileAnimations; -- cgit v1.2.3-60-g2f50