diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 03:21:39 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 03:21:39 +0000 |
commit | 7593d6c71e2331c3e43c732db60ad03ee4d5385d (patch) | |
tree | 3ad242a957b6a500319d7bdae15149c553521ee4 /src/map.cpp | |
parent | 81cf85e9ec1d37dc6e8dd9883f42bb50dace9135 (diff) | |
download | mana-client-7593d6c71e2331c3e43c732db60ad03ee4d5385d.tar.gz mana-client-7593d6c71e2331c3e43c732db60ad03ee4d5385d.tar.bz2 mana-client-7593d6c71e2331c3e43c732db60ad03ee4d5385d.tar.xz mana-client-7593d6c71e2331c3e43c732db60ad03ee4d5385d.zip |
Added Spriteset::get() and Spriteset::size() to hide the member vector and remove the weird mySpriteset->spriteset stuff.
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |