mirror of
https://github.com/araxiaonline/mod-azerothshard.git
synced 2026-06-13 01:32:21 -04:00
chore: addition to my previous commit
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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()+")";
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user