Maintenance: [forced, user-approved] Family S3: remove ShortcutCooldowns (17 reinterpret_cast<ShortcutCooldowns&>(g_session.m_request

Batch #10274 by ragnarok-clanker: forced by an admin (3 lower score(s), 9 changed function(s)); checked with 348 compiled unit(s), including every includer of Source/Client/Mode/CGameMode.h, Source/Client/Session.h, Source/UI/Shortcuts/ShortcutCooldowns.h.
This commit is contained in:
ragnarok-clanker 2026-11-03 15:12:40 +00:00
commit 514c8dc0cd
12 changed files with 96 additions and 123 deletions

View file

@ -2329,13 +2329,13 @@ ITEM_INFO CSession::GetItem61B8(int index) const {
// OFFSET: 0x00E31DE0
// FUNCTION: fn_24177
bool CSession::IsRequestReady(int requestId) {
std::list<SessionRequestTimer>::iterator it = this->m_requestTimers.begin();
std::list<ShortcutCooldownRecord>::iterator it = this->m_requestTimers.begin();
for (; it != this->m_requestTimers.end(); ++it) {
if (requestId == it->requestId || it->requestId == 0x241) {
if (requestId == it->id || it->id == 0x241) {
break;
}
}
if (it != this->m_requestTimers.end() && it->readyTime - 100 > timeGetTime()) {
if (it != this->m_requestTimers.end() && it->end - 100 > timeGetTime()) {
return false;
}
return true;