summaryrefslogtreecommitdiff
path: root/src/resources/map/maplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-31 23:14:35 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-03 01:35:16 +0300
commit47987b945116130195563ae2aca068973063bfe5 (patch)
tree107db7a48b9763ce0c21639d9147cbc034d5b8bd /src/resources/map/maplayer.h
parent896d41e4b073046c59933ea8829474bd82b9c506 (diff)
downloadmv-47987b945116130195563ae2aca068973063bfe5.tar.gz
mv-47987b945116130195563ae2aca068973063bfe5.tar.bz2
mv-47987b945116130195563ae2aca068973063bfe5.tar.xz
mv-47987b945116130195563ae2aca068973063bfe5.zip
Fix drawing layers after previous commits.
Add unit tests for layer caching functions.
Diffstat (limited to 'src/resources/map/maplayer.h')
-rw-r--r--src/resources/map/maplayer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resources/map/maplayer.h b/src/resources/map/maplayer.h
index b80be7445..19abac17c 100644
--- a/src/resources/map/maplayer.h
+++ b/src/resources/map/maplayer.h
@@ -170,6 +170,10 @@ class MapLayer final: public MemoryCounter, public ConfigListener
return mTiles;
}
+ void setTileCondition(const int c)
+ {
+ mTileCondition = c;
+ }
#endif // UNITTESTS
#ifndef UNITTESTS
@@ -185,7 +189,7 @@ class MapLayer final: public MemoryCounter, public ConfigListener
int &restrict nextTile)
A_WARN_UNUSED A_NONNULL(1);
- void updateConditionTiles(MetaTile *restrict const metaTiles,
+ void updateConditionTiles(const MetaTile *restrict const metaTiles,
const int width,
const int height) restrict A_NONNULL(2);