diff options
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/guildhandler.cpp | 9 | ||||
-rw-r--r-- | src/net/ea/partyhandler.cpp | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/net/ea/guildhandler.cpp b/src/net/ea/guildhandler.cpp index b2a78f7da..e19b44592 100644 --- a/src/net/ea/guildhandler.cpp +++ b/src/net/ea/guildhandler.cpp @@ -145,6 +145,8 @@ void GuildHandler::processGuildMemberLogin(Net::MessageIn &msg) const m->setOnline(online); if (guildTab) guildTab->showOnline(m->getName(), online); + if (socialWindow) + socialWindow->updateGuildCounter(); } } } @@ -234,6 +236,8 @@ void GuildHandler::processGuildMemberList(Net::MessageIn &msg) const taGuild->clearMembers(); + int onlineNum = 0; + int totalNum = 0; for (int i = 0; i < count; i++) { const int id = msg.readInt32(); // Account ID @@ -274,6 +278,9 @@ void GuildHandler::processGuildMemberList(Net::MessageIn &msg) const } } } + if (online) + onlineNum ++; + totalNum ++; } } taGuild->sort(); @@ -282,6 +289,8 @@ void GuildHandler::processGuildMemberList(Net::MessageIn &msg) const actorSpriteManager->updatePlayerGuild(); actorSpriteManager->updatePlayerColors(); } + if (socialWindow) + socialWindow->updateGuildCounter(onlineNum, totalNum); } void GuildHandler::processGuildPosNameList(Net::MessageIn &msg) const diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index a8233bbf6..819b2f133 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -142,6 +142,7 @@ void PartyHandler::processPartyInfo(Net::MessageIn &msg) const { player_node->setParty(Ea::taParty); player_node->setPartyName(Ea::taParty->getName()); + socialWindow->updateParty(); } } |