mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[7406] Remove string version of BattleGround::SendMessageToAll. Use only string_id versions always.
This commit is contained in:
parent
e2e1a9f7d4
commit
27a2d88796
6 changed files with 11 additions and 16 deletions
|
|
@ -1474,13 +1474,6 @@ bool BattleGround::AddSpiritGuide(uint32 type, float x, float y, float z, float
|
|||
return true;
|
||||
}
|
||||
|
||||
void BattleGround::SendMessageToAll(char const* text, uint8 type)
|
||||
{
|
||||
WorldPacket data;
|
||||
ChatHandler::FillMessageData(&data, NULL, type, LANG_UNIVERSAL, NULL, 0, text, NULL);
|
||||
SendPacketToAll(&data);
|
||||
}
|
||||
|
||||
void BattleGround::SendMessageToAll(int32 entry, uint8 type)
|
||||
{
|
||||
char const* text = GetMangosString(entry);
|
||||
|
|
@ -1498,7 +1491,10 @@ void BattleGround::PSendMessageToAll(int32 entry, uint8 type, ...)
|
|||
va_start(ap, type);
|
||||
vsnprintf(str,2048,format, ap );
|
||||
va_end(ap);
|
||||
SendMessageToAll(str, type);
|
||||
|
||||
WorldPacket data;
|
||||
ChatHandler::FillMessageData(&data, NULL, type, LANG_UNIVERSAL, NULL, 0, str, NULL);
|
||||
SendPacketToAll(&data);
|
||||
}
|
||||
|
||||
void BattleGround::EndNow()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue