summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 1bd8f235..ec4abc50 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -280,7 +280,7 @@ Map::setWalk(int x, int y, bool walkable)
}
bool
-Map::getWalk(int x, int y)
+Map::getWalk(int x, int y) const
{
return !tileCollides(x, y) && !occupied(x, y);
}
@@ -302,7 +302,7 @@ Map::occupied(int x, int y)
}
bool
-Map::tileCollides(int x, int y)
+Map::tileCollides(int x, int y) const
{
return !(contains(x, y) && mMetaTiles[x + y * mWidth].walkable);
}