chore: addition to my previous commit

This commit is contained in:
FrancescoBorzi
2021-09-15 15:08:04 +02:00
parent 65fb011d61
commit 1eba90a65b
3 changed files with 4 additions and 4 deletions

View File

@@ -1612,7 +1612,7 @@ public:
else // save only in non-flight case
player->SaveRecallPosition();
if (!MapManager::IsValidMapCoord(map, x, y, z))
if (!MapMgr::IsValidMapCoord(map, x, y, z))
{
handler->PSendSysMessage(LANG_INVALID_TARGET_COORD, x, y, map);
handler->SetSentErrorMessage(true);

View File

@@ -290,7 +290,7 @@ public:
if (sAZTH->GetAZTHPlayer(player)->getCurrentDimensionByAura() == DIMENSION_RPG) {
Player *owner=getHomeOwner(player);
if (MapManager::IsValidMapCoord(sAZTH->GetAZTHPlayer(owner)->getLastPositionInfo(AZTH_SMRTST_POSITION_HOUSE_INDEX))) {
if (MapMgr::IsValidMapCoord(sAZTH->GetAZTHPlayer(owner)->getLastPositionInfo(AZTH_SMRTST_POSITION_HOUSE_INDEX))) {
// home teleport for RPG world
SmartStoneCommand homeTeleport = sSmartStone->getCommandById(SMRTST_TELEPORT_HOUSE);
std::string str=homeTeleport.getText(player) + " (" +owner->GetName()+")";

View File

@@ -16,7 +16,7 @@ void SmartStoneApps::blackMarketTeleport(Player *player) {
}
else {
WorldLocation const& pos = sAZTH->GetAZTHPlayer(player)->getLastPositionInfo(sAZTH->GetAZTHPlayer(player)->getCurrentDimensionByAura());
if (!MapManager::IsValidMapCoord(pos))
if (!MapMgr::IsValidMapCoord(pos))
return;
Map *m = sMapMgr->FindBaseMap(pos.GetMapId());
@@ -38,7 +38,7 @@ void SmartStoneApps::teleportHouse(Player *owner, Player *guest) {
return;
WorldLocation const& pos = sAZTH->GetAZTHPlayer(owner)->getLastPositionInfo(AZTH_SMRTST_POSITION_HOUSE_INDEX);
if (!MapManager::IsValidMapCoord(pos))
if (!MapMgr::IsValidMapCoord(pos))
return;
guest->TeleportTo(pos);