summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-12-05 20:20:25 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-12-05 20:20:25 +0000
commitd8539e4ccac014c306329cda2c8bed036a80af39 (patch)
tree2ba911e66c31102173f4df9cbac19049a7f45a4b /src/map.h
parentc65678cd7016d56aa3f8360b7e8d36e275b8c90e (diff)
downloadmana-client-d8539e4ccac014c306329cda2c8bed036a80af39.tar.gz
mana-client-d8539e4ccac014c306329cda2c8bed036a80af39.tar.bz2
mana-client-d8539e4ccac014c306329cda2c8bed036a80af39.tar.xz
mana-client-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.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/map.h b/src/map.h
index 17772847..5c7fe1e9 100644
--- a/src/map.h
+++ b/src/map.h
@@ -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;