summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-09 21:10:01 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-09 21:10:01 +0300
commitb4121ca0c5b2a74e02cce69c32316287ffc63034 (patch)
tree38837017fd2cef634a5c4b16778239d1f9345407 /src/map.h
parentd528e72adef79304c0b3cc55af838070a0af8ee1 (diff)
downloadplus-b4121ca0c5b2a74e02cce69c32316287ffc63034.tar.gz
plus-b4121ca0c5b2a74e02cce69c32316287ffc63034.tar.bz2
plus-b4121ca0c5b2a74e02cce69c32316287ffc63034.tar.xz
plus-b4121ca0c5b2a74e02cce69c32316287ffc63034.zip
Improve map class.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map.h b/src/map.h
index b433eb349..3f922471d 100644
--- a/src/map.h
+++ b/src/map.h
@@ -63,7 +63,7 @@ struct MetaTile final
* Constructor.
*/
MetaTile() : Fcost(0), Gcost(0), Hcost(0), whichList(0),
- parentX(0), parentY(0), blockmask(0)
+ parentX(0), parentY(0), blockmask(0)
{}
A_DELETE_COPY(MetaTile)
@@ -263,6 +263,7 @@ class Map final : public Properties, public ConfigListener
*/
const std::string getFilename() const A_WARN_UNUSED;
+#ifdef MANASERV_SUPPORT
/**
* Check the current position against surrounding blocking tiles, and
* correct the position offset within tile when needed.
@@ -283,6 +284,7 @@ class Map final : public Properties, public ConfigListener
const int destPixelX, const int destPixelY,
const int radius, const unsigned char walkmask,
const int maxCost = 20) A_WARN_UNUSED;
+#endif
/**
* Find a path from one location to the next.