diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-31 23:14:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-03 01:35:16 +0300 |
commit | 47987b945116130195563ae2aca068973063bfe5 (patch) | |
tree | 107db7a48b9763ce0c21639d9147cbc034d5b8bd /src/resources/map/maplayer.h | |
parent | 896d41e4b073046c59933ea8829474bd82b9c506 (diff) | |
download | plus-47987b945116130195563ae2aca068973063bfe5.tar.gz plus-47987b945116130195563ae2aca068973063bfe5.tar.bz2 plus-47987b945116130195563ae2aca068973063bfe5.tar.xz plus-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.h | 6 |
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); |