summaryrefslogtreecommitdiff
path: root/src/resources/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-18 23:08:12 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-18 23:08:12 +0300
commit55d43e6dfd890df0ce7b26f6c9cb5692e2c136b1 (patch)
treea105b3cc7277170e3d51b70d362540bae4483d5f /src/resources/map
parentf1558113c591ccdca3596b900c4cbcfc56644860 (diff)
downloadplus-55d43e6dfd890df0ce7b26f6c9cb5692e2c136b1.tar.gz
plus-55d43e6dfd890df0ce7b26f6c9cb5692e2c136b1.tar.bz2
plus-55d43e6dfd890df0ce7b26f6c9cb5692e2c136b1.tar.xz
plus-55d43e6dfd890df0ce7b26f6c9cb5692e2c136b1.zip
Fix some style issues.
Diffstat (limited to 'src/resources/map')
-rw-r--r--src/resources/map/map.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp
index d86360059..2b6dd070b 100644
--- a/src/resources/map/map.cpp
+++ b/src/resources/map/map.cpp
@@ -975,12 +975,14 @@ Path Map::findPath(const int startX, const int startY,
++Gcost;
}
+/*
// It costs extra to walk through a being (needs to be enough
// to make it more attractive to walk around).
-// if (occupied(x, y))
-// {
-// Gcost += 3 * basicCost;
-// }
+ if (occupied(x, y))
+ {
+ Gcost += 3 * basicCost;
+ }
+*/
// Skip if Gcost becomes too much
// Warning: probably not entirely accurate