Core/Text: Implemented locales_points_of_interest. (#225)
This commit is contained in:
@@ -171,13 +171,19 @@ void PlayerMenu::SendPointOfInterest(uint32 poiId) const
|
||||
return;
|
||||
}
|
||||
|
||||
std::string iconText = poi->icon_name;
|
||||
int32 locale = _session->GetSessionDbLocaleIndex();
|
||||
if (locale >= 0)
|
||||
if (PointOfInterestLocale const* localeData = sObjectMgr->GetPointOfInterestLocale(poiId))
|
||||
ObjectMgr::GetLocaleString(localeData->IconName, locale, iconText);
|
||||
|
||||
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 << poi->icon_name;
|
||||
data << iconText;
|
||||
|
||||
_session->SendPacket(&data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user