summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map.h b/src/map.h
index b7917275..086ff4cc 100644
--- a/src/map.h
+++ b/src/map.h
@@ -108,7 +108,8 @@ class MapLayer
/**
* Get tile image, with x and y in layer coordinates.
*/
- Image *getTile(int x, int y) const;
+ Image *getTile(int x, int y) const
+ { return mTiles[x + y * mWidth]; }
/**
* Draws this layer to the given graphics context. The coordinates are
@@ -125,7 +126,7 @@ class MapLayer
const Actors &actors,
int debugFlags) const;
- bool isFringeLayer()
+ bool isFringeLayer() const
{ return mIsFringeLayer; }
int getTileDrawWidth(int x1, int y1, int endX, int &width) const;