From 7e35fd53d5fdc658facfce281577421296f8e3c1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 15 Oct 2015 22:00:10 +0300 Subject: Simplify setWall function in map. --- src/resources/map/map.cpp | 2 +- src/resources/map/map.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources') diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp index 8ad0c5977..bcc84417c 100644 --- a/src/resources/map/map.cpp +++ b/src/resources/map/map.cpp @@ -733,7 +733,7 @@ unsigned char Map::getBlockMask(const int x, const int y) const return mMetaTiles[x + y * mWidth].blockmask; } -void Map::setWalk(const int x, const int y, const bool walkable A_UNUSED) +void Map::setWalk(const int x, const int y) { blockTile(x, y, BlockType::GROUNDTOP); } diff --git a/src/resources/map/map.h b/src/resources/map/map.h index 80f74e0ae..c1b84ae83 100644 --- a/src/resources/map/map.h +++ b/src/resources/map/map.h @@ -156,7 +156,7 @@ class Map final : public Properties, public ConfigListener const unsigned char blockWalkMask = BlockMask::WALL | BlockMask::AIR | BlockMask::WATER) const A_WARN_UNUSED; - void setWalk(const int x, const int y, const bool walkable); + void setWalk(const int x, const int y); unsigned char getBlockMask(const int x, const int y) const; -- cgit v1.2.3-70-g09d2