Decompile fn_05155 (CGuildEmblemReqBundle::Update)
Batch #14011 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_05155 CGuildEmblemReqBundle::Update: logic confirmed by peer review Peer-reviewed-by: Yommy, aDw, StrawberrysherbetIX Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
57d4ff473d
commit
ef79d9382e
5 changed files with 16 additions and 19 deletions
|
|
@ -24,11 +24,11 @@ void CGuildEmblemReqBundle::Add(std::uint32_t guildId, std::uint32_t version) {
|
|||
|
||||
// OFFSET: 0x0065CB90
|
||||
// FUNCTION: fn_05155
|
||||
void CGuildEmblemReqBundle::Update(
|
||||
CEmblemDataMgr& emblems, std::uint32_t accountId, const std::string& accountName, const char* token16, CConnection& connection, CAsyncWorkMgr& manager
|
||||
) {
|
||||
void CGuildEmblemReqBundle::Update() {
|
||||
while (!this->m_recent.empty()) {
|
||||
if (timeGetTime() < this->m_recent.front().tick + 60000u) {
|
||||
const Recent oldest = this->m_recent.front();
|
||||
|
||||
if (timeGetTime() < oldest.tick + 60000u) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ void CGuildEmblemReqBundle::Update(
|
|||
}
|
||||
|
||||
if (request.first != 0) {
|
||||
emblems.Download(request.first, request.second, accountId, accountName, token16, connection, manager);
|
||||
g_emblemDataMgr->Download(request.first, request.second);
|
||||
this->m_recent.push_back({request.first, request.second, timeGetTime()});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue