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/being/localplayer.cpp | |
parent | 2e07d1c5eb79eb291c20da511d0a313f56690756 (diff) | |
download | manaverse-cc7a39f467a49b2e91717739cb6e7c3c4b34a245.tar.gz manaverse-cc7a39f467a49b2e91717739cb6e7c3c4b34a245.tar.bz2 manaverse-cc7a39f467a49b2e91717739cb6e7c3c4b34a245.tar.xz manaverse-cc7a39f467a49b2e91717739cb6e7c3c4b34a245.zip |
Remove default parameters from map.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r-- | src/being/localplayer.cpp | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index d336c0e00..135dce434 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -1833,8 +1833,11 @@ void LocalPlayer::setHome() if (iter != mHomes.end() && mX == CAST_S32(pos.x) && mY == CAST_S32(pos.y)) { - mMap->updatePortalTile("", MapItemType::EMPTY, - CAST_S32(pos.x), CAST_S32(pos.y)); + mMap->updatePortalTile("", + MapItemType::EMPTY, + CAST_S32(pos.x), + CAST_S32(pos.y), + true); mHomes.erase(key); socialWindow->removePortal(CAST_S32(pos.x), @@ -1852,8 +1855,11 @@ void LocalPlayer::setHome() pos.x = static_cast<float>(mX); pos.y = static_cast<float>(mY); mHomes[key] = pos; - mMap->updatePortalTile("home", MapItemType::HOME, - mX, mY); + mMap->updatePortalTile("home", + MapItemType::HOME, + mX, + mY, + true); socialWindow->addPortal(mX, mY); } MapItem *const mapItem = specialLayer->getTile(mX, mY); @@ -1892,7 +1898,11 @@ void LocalPlayer::setHome() { type = MapItemType::EMPTY; } - mMap->updatePortalTile("", type, mX, mY); + mMap->updatePortalTile("", + type, + mX, + mY, + true); if (type != MapItemType::EMPTY) { |