Skip to content

Commit 052196d

Browse files
Treat bcast areas 1 and 2 as global
1 parent e84f650 commit 052196d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Chat.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ static void announcementHandler(CNSocket* sock, CNPacketData* data) {
102102
memcpy(msg.szAnnounceMsg, announcement->szAnnounceMsg, sizeof(msg.szAnnounceMsg));
103103
std::map<CNSocket*, Player*>::iterator it;
104104

105+
// This value is completely arbitrary, but these make the most sense when you consider the architecture of the game
105106
switch (announcement->iAreaType) {
106107
case 0: // area (all players in viewable chunks)
107108
sock->sendPacket(msg, P_FE2CL_GM_REP_PC_ANNOUNCE);
108109
PlayerManager::sendToViewable(sock, msg, P_FE2CL_GM_REP_PC_ANNOUNCE);
109110
break;
110-
case 1: // shard
111-
case 2: // world
112-
break; // not applicable to OpenFusion
111+
case 1: // channel
112+
case 2: // shard
113113
case 3: // global (all players)
114114
for (it = PlayerManager::players.begin(); it != PlayerManager::players.end(); it++) {
115115
CNSocket* allSock = it->first;

0 commit comments

Comments
 (0)