diff options
Diffstat (limited to 'src/resources/map')
-rw-r--r-- | src/resources/map/map.cpp | 2 | ||||
-rw-r--r-- | src/resources/map/map.h | 2 | ||||
-rw-r--r-- | src/resources/map/maplayer.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp index 51bb90f9d..39dc4b28f 100644 --- a/src/resources/map/map.cpp +++ b/src/resources/map/map.cpp @@ -1566,7 +1566,7 @@ void Map::reduce() restrict2 #endif } -void Map::addHeights(MapHeights *restrict const heights) restrict2 +void Map::addHeights(const MapHeights *restrict const heights) restrict2 { delete mHeights; mHeights = heights; diff --git a/src/resources/map/map.h b/src/resources/map/map.h index 4ee387f8f..3ffedc3de 100644 --- a/src/resources/map/map.h +++ b/src/resources/map/map.h @@ -348,7 +348,7 @@ class Map final : public Properties, public ConfigListener void setWalkLayer(WalkLayer *restrict const layer) restrict2 noexcept { mWalkLayer = layer; } - void addHeights(MapHeights *restrict const heights) restrict2; + void addHeights(const MapHeights *restrict const heights) restrict2; uint8_t getHeightOffset(const int x, const int y) const restrict2; diff --git a/src/resources/map/maplayer.h b/src/resources/map/maplayer.h index a02c031d1..59276a378 100644 --- a/src/resources/map/maplayer.h +++ b/src/resources/map/maplayer.h @@ -141,10 +141,10 @@ class MapLayer final: public ConfigListener bool isFringeLayer() const restrict noexcept A_WARN_UNUSED { return mIsFringeLayer; } - void setSpecialLayer(SpecialLayer *restrict const val) restrict + void setSpecialLayer(const SpecialLayer *restrict const val) restrict { mSpecialLayer = val; } - void setTempLayer(SpecialLayer *restrict const val) restrict + void setTempLayer(const SpecialLayer *restrict const val) restrict { mTempLayer = val; } int getWidth() const restrict noexcept A_WARN_UNUSED |