diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-23 02:10:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-23 20:52:54 +0300 |
commit | dce838195b3d2ca4703094aa8602038bb1e1e7f3 (patch) | |
tree | 1d79540f9f3787129c08c1326ab7e72249a2b27f /src/map.h | |
parent | f5536169ce6143ae39bcfd8b353e6495dac76a72 (diff) | |
download | manaverse-dce838195b3d2ca4703094aa8602038bb1e1e7f3.tar.gz manaverse-dce838195b3d2ca4703094aa8602038bb1e1e7f3.tar.bz2 manaverse-dce838195b3d2ca4703094aa8602038bb1e1e7f3.tar.xz manaverse-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.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; |