summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-23 02:10:02 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-23 20:52:54 +0300
commitdce838195b3d2ca4703094aa8602038bb1e1e7f3 (patch)
tree1d79540f9f3787129c08c1326ab7e72249a2b27f /src/map.h
parentf5536169ce6143ae39bcfd8b353e6495dac76a72 (diff)
downloadmanaplus-dce838195b3d2ca4703094aa8602038bb1e1e7f3.tar.gz
manaplus-dce838195b3d2ca4703094aa8602038bb1e1e7f3.tar.bz2
manaplus-dce838195b3d2ca4703094aa8602038bb1e1e7f3.tar.xz
manaplus-dce838195b3d2ca4703094aa8602038bb1e1e7f3.zip
Reorder map sprites to draw correctly player with more than one tile width.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map.h b/src/map.h
index fbb8e1394..11034a37e 100644
--- a/src/map.h
+++ b/src/map.h
@@ -159,7 +159,7 @@ class MapLayer: public ConfigListener
int endX, int endY,
int scrollX, int scrollY,
const Actors &actors,
- int mDebugFlags) const;
+ int mDebugFlags, int yFix) const;
bool isFringeLayer()
{ return mIsFringeLayer; }
@@ -437,6 +437,9 @@ class Map : public Properties, public ConfigListener
void clearIndexedTilesets();
+ void setActorsFix(int x, int y)
+ { mActorFixX = x; mActorFixY = y; }
+
protected:
friend class Actor;
@@ -523,6 +526,8 @@ class Map : public Properties, public ConfigListener
bool mTilesetsIndexed;
Tileset** mIndexedTilesets;
int mIndexedTilesetsSize;
+ int mActorFixX;
+ int mActorFixY;
SpecialLayer *mSpecialLayer;
SpecialLayer *mTempLayer;