Skip to content

Commit

Permalink
Addendum to #3251 (#3252)
Browse files Browse the repository at this point in the history
Addendum #2 to eae47fe / #3251
  • Loading branch information
Lpsd authored Nov 27, 2023
1 parent 34f00f3 commit 9544a34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Server/mods/deathmatch/logic/CGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,9 @@ void CGame::DoPulse()
// Process our resource stop/restart queue
CLOCK_CALL1(m_pResourceManager->ProcessQueue(););

if (GetTickCount64_() + m_iClientTriggeredEventsIntervalMs > m_lClientTriggeredEventsLastCheck)
ProcessClientTriggeredEventSpam();

// Delete all items requested
CLOCK_CALL1(m_ElementDeleter.DoDeleteAll(););

Expand All @@ -551,9 +554,6 @@ void CGame::DoPulse()
PrintLogOutputFromNetModule();
m_pScriptDebugging->UpdateLogOutput();

if (GetTickCount64_() + m_iClientTriggeredEventsIntervalMs > m_lClientTriggeredEventsLastCheck)
ProcessClientTriggeredEventSpam();

// Unlock the critical section again
Unlock();
}
Expand Down Expand Up @@ -4708,7 +4708,7 @@ void CGame::HandleCrashDumpEncryption()

void CGame::RegisterClientTriggeredEventUsage(CPlayer* pPlayer)
{
if (!pPlayer)
if (!pPlayer && pPlayer->IsPlayer() && !pPlayer->IsBeingDeleted())
return;

m_mapClientTriggeredEvents[pPlayer]++;
Expand Down

0 comments on commit 9544a34

Please sign in to comment.