summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-31 17:09:55 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-31 17:09:55 +0200
commit7a178f6d257a2241d3400271d20eb2b902fdab37 (patch)
tree651f0ec744039e82616b2739b83effadf79e1a24 /src/map.h
parent3b22c2cf170c877904dcef5a4af03ac360bd0581 (diff)
downloadmana-client-7a178f6d257a2241d3400271d20eb2b902fdab37.tar.gz
mana-client-7a178f6d257a2241d3400271d20eb2b902fdab37.tar.bz2
mana-client-7a178f6d257a2241d3400271d20eb2b902fdab37.tar.xz
mana-client-7a178f6d257a2241d3400271d20eb2b902fdab37.zip
Fixed drawing issues with tiles that don't match the grid
An optimization in the tile layer rendering code meant for drawing repeated tiles faster was not taking into account the case where the tile width does not match the width of the tile grid.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.h b/src/map.h
index b7917275..6fe2b556 100644
--- a/src/map.h
+++ b/src/map.h
@@ -125,7 +125,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;