From 7593d6c71e2331c3e43c732db60ad03ee4d5385d Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 9 Mar 2006 03:21:39 +0000 Subject: Added Spriteset::get() and Spriteset::size() to hide the member vector and remove the weird mySpriteset->spriteset stuff. --- src/map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map.cpp') diff --git a/src/map.cpp b/src/map.cpp index 57cd5a97..c66a85c9 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -179,7 +179,7 @@ class ContainsGidFunctor bool operator() (Tileset* set) { return (set->getFirstGid() <= gid && - gid - set->getFirstGid() < (int)set->spriteset.size()); + gid - set->getFirstGid() < (int)set->size()); } int gid; } containsGid; @@ -200,7 +200,7 @@ Map::getTileWithGid(int gid) Tileset *set = getTilesetWithGid(gid); if (set) { - return set->spriteset[gid - set->getFirstGid()]; + return set->get(gid - set->getFirstGid()); } return NULL; -- cgit v1.2.3-70-g09d2