From 052196d1cd5d728b64b1e81432d519ebc560bf5f Mon Sep 17 00:00:00 2001 From: Gent Semaj Date: Thu, 2 Jan 2025 18:26:00 -0500 Subject: [PATCH] Treat bcast areas 1 and 2 as global --- src/Chat.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Chat.cpp b/src/Chat.cpp index 480b88c..c4eeb36 100644 --- a/src/Chat.cpp +++ b/src/Chat.cpp @@ -102,14 +102,14 @@ static void announcementHandler(CNSocket* sock, CNPacketData* data) { memcpy(msg.szAnnounceMsg, announcement->szAnnounceMsg, sizeof(msg.szAnnounceMsg)); std::map::iterator it; + // This value is completely arbitrary, but these make the most sense when you consider the architecture of the game switch (announcement->iAreaType) { case 0: // area (all players in viewable chunks) sock->sendPacket(msg, P_FE2CL_GM_REP_PC_ANNOUNCE); PlayerManager::sendToViewable(sock, msg, P_FE2CL_GM_REP_PC_ANNOUNCE); break; - case 1: // shard - case 2: // world - break; // not applicable to OpenFusion + case 1: // channel + case 2: // shard case 3: // global (all players) for (it = PlayerManager::players.begin(); it != PlayerManager::players.end(); it++) { CNSocket* allSock = it->first;