Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5525,9 +5525,9 @@ void ScriptEngine::update(void)
#endif

#if defined(GENERALS_ONLINE_HIGH_FPS_SERVER)
if (!m_firstUpdate && !TheGameLogic->HasLegacyFrameAdvanced()) {
return;
}
const bool legacyFrameAdvanced = TheGameLogic->HasLegacyFrameAdvanced();
#else
const bool legacyFrameAdvanced = true;
#endif
if (m_firstUpdate) {
createNamedCache();
Expand Down Expand Up @@ -5578,7 +5578,9 @@ void ScriptEngine::update(void)
if (m_counters[i].isCountdownTimer) {
// If counter has any time left, decrement. Counters go to -1 and stop.
if (m_counters[i].value >= 0) {
m_counters[i].value--;
if (legacyFrameAdvanced) {
m_counters[i].value--;
}
}
}
}
Expand Down
Loading