diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-22 01:28:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-22 01:28:56 +0300 |
commit | cc7a39f467a49b2e91717739cb6e7c3c4b34a245 (patch) | |
tree | b930d808b5782b77dfa7cd52bbaa902101b8ba06 /src/resources/map/map.cpp | |
parent | 2e07d1c5eb79eb291c20da511d0a313f56690756 (diff) | |
download | mv-cc7a39f467a49b2e91717739cb6e7c3c4b34a245.tar.gz mv-cc7a39f467a49b2e91717739cb6e7c3c4b34a245.tar.bz2 mv-cc7a39f467a49b2e91717739cb6e7c3c4b34a245.tar.xz mv-cc7a39f467a49b2e91717739cb6e7c3c4b34a245.zip |
Remove default parameters from map.
Diffstat (limited to 'src/resources/map/map.cpp')
-rw-r--r-- | src/resources/map/map.cpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp index 8477b026e..39365643d 100644 --- a/src/resources/map/map.cpp +++ b/src/resources/map/map.cpp @@ -1180,18 +1180,26 @@ void Map::addExtraLayer() restrict2 } if (type == MapItemType::PORTAL) { - updatePortalTile(comment, type, atoi(x.c_str()), - atoi(y.c_str()), false); + updatePortalTile(comment, + type, + atoi(x.c_str()), + atoi(y.c_str()), + false); } else if (type == MapItemType::HOME) { - updatePortalTile(comment, type, atoi(x.c_str()), - atoi(y.c_str())); + updatePortalTile(comment, + type, + atoi(x.c_str()), + atoi(y.c_str()), + true); } else { - addPortalTile(comment, type, atoi(x.c_str()), - atoi(y.c_str())); + addPortalTile(comment, + type, + atoi(x.c_str()), + atoi(y.c_str())); } } } |