Core/Text: Implemented locales_page_text. (#221)
This commit is contained in:
parent
7e4328b588
commit
b9aa88ac2b
3 changed files with 1982 additions and 1 deletions
|
|
@ -275,7 +275,14 @@ void WorldSession::HandlePageTextQueryOpcode(WorldPacket & recvData)
|
|||
}
|
||||
else
|
||||
{
|
||||
data << pageText->Text;
|
||||
std::string Text = pageText->Text;
|
||||
|
||||
int loc_idx = GetSessionDbLocaleIndex();
|
||||
if (loc_idx >= 0)
|
||||
if (PageTextLocale const* player = sObjectMgr->GetPageTextLocale(pageID))
|
||||
ObjectMgr::GetLocaleString(player->Text, loc_idx, Text);
|
||||
|
||||
data << Text;
|
||||
data << uint32(pageText->NextPage);
|
||||
pageID = pageText->NextPage;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue