diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-12-05 20:20:25 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-12-05 20:20:25 +0000 |
commit | d8539e4ccac014c306329cda2c8bed036a80af39 (patch) | |
tree | 2ba911e66c31102173f4df9cbac19049a7f45a4b /src/map.h | |
parent | c65678cd7016d56aa3f8360b7e8d36e275b8c90e (diff) | |
download | mana-d8539e4ccac014c306329cda2c8bed036a80af39.tar.gz mana-d8539e4ccac014c306329cda2c8bed036a80af39.tar.bz2 mana-d8539e4ccac014c306329cda2c8bed036a80af39.tar.xz mana-d8539e4ccac014c306329cda2c8bed036a80af39.zip |
Fix drawing of very high fringe tiles by keeping track of the maximum tile
height.
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -39,7 +39,6 @@ class Tileset; struct PATH_NODE; typedef std::vector<Tileset*> Tilesets; -typedef Tilesets::iterator TilesetIterator; typedef std::list<Sprite*> Sprites; typedef Sprites::iterator SpriteIterator; @@ -202,14 +201,12 @@ class Map : public Properties * Converts a global tile id to the Image* pointing to the associated * tile image. */ - Image* - getTileWithGid(int gid); + Image* getTileWithGid(int gid) const; /** * Finds the tile set that a tile with the given global id is part of. */ - Tileset* - getTilesetWithGid(int gid); + Tileset* getTilesetWithGid(int gid) const; /** * Tells whether a tile is occupied by a being. @@ -223,6 +220,7 @@ class Map : public Properties int mWidth, mHeight; int mTileWidth, mTileHeight; + int mMaxTileHeight; MetaTile *mMetaTiles; Image **mTiles; |