mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 16:16:27 +00:00
This commit is contained in:
committed by
Stoabrogga
parent
6cac3f881f
commit
9dd623e061
@@ -234,7 +234,7 @@ struct GossipMenuItemsLocale
|
||||
|
||||
struct PointOfInterestLocale
|
||||
{
|
||||
StringVector IconName;
|
||||
StringVector Name;
|
||||
};
|
||||
|
||||
#define MAX_EQUIPMENT_ITEMS 3
|
||||
|
||||
@@ -244,19 +244,19 @@ void PlayerMenu::SendPointOfInterest(uint32 poiId) const
|
||||
return;
|
||||
}
|
||||
|
||||
std::string iconText = poi->icon_name;
|
||||
std::string name = poi->Name;
|
||||
int32 locale = _session->GetSessionDbLocaleIndex();
|
||||
if (locale >= 0)
|
||||
if (PointOfInterestLocale const* localeData = sObjectMgr->GetPointOfInterestLocale(poiId))
|
||||
ObjectMgr::GetLocaleString(localeData->IconName, locale, iconText);
|
||||
ObjectMgr::GetLocaleString(localeData->Name, locale, name);
|
||||
|
||||
WorldPacket data(SMSG_GOSSIP_POI, 4 + 4 + 4 + 4 + 4 + 20); // guess size
|
||||
data << uint32(poi->flags);
|
||||
data << float(poi->x);
|
||||
data << float(poi->y);
|
||||
data << uint32(poi->icon);
|
||||
data << uint32(poi->data);
|
||||
data << iconText;
|
||||
data << uint32(poi->Flags);
|
||||
data << float(poi->PositionX);
|
||||
data << float(poi->PositionY);
|
||||
data << uint32(poi->Icon);
|
||||
data << uint32(poi->Importance);
|
||||
data << name;
|
||||
|
||||
_session->SendPacket(&data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user