Skip to content

Commit

Permalink
chore: addition to my previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoBorzi committed Sep 15, 2021
1 parent 65fb011 commit 1eba90a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/mod-as-platform/src/AZTH_SC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ class CommandAZTH_SC : public CommandScript
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);
Expand Down
2 changes: 1 addition & 1 deletion modules/mod-smartstone/src/scripts/AzthSmartStone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class azth_smart_stone : public ItemScript
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()+")";
Expand Down
4 changes: 2 additions & 2 deletions modules/mod-smartstone/src/scripts/Misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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);
Expand Down

0 comments on commit 1eba90a

Please sign in to comment.