From 9324b318ae2d57a2b67ce0f74f0a19df125d240d Mon Sep 17 00:00:00 2001 From: TheApadayo Date: Wed, 7 Jun 2017 15:27:09 -0400 Subject: [PATCH] [Dedicated] fix bad editing --- src/Components/Modules/Dedicated.cpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/Components/Modules/Dedicated.cpp b/src/Components/Modules/Dedicated.cpp index e8b2a795..e0266ee8 100644 --- a/src/Components/Modules/Dedicated.cpp +++ b/src/Components/Modules/Dedicated.cpp @@ -396,19 +396,18 @@ namespace Components }); #ifdef USE_LEGACY_SERVER_LIST - // Heartbeats - Scheduler::OnFrame([] () - { - static int LastHeartbeat = 0; + // Heartbeats + Scheduler::OnFrame([] () + { + static int LastHeartbeat = 0; - if (Dvar::Var("sv_maxclients").get() > 0 && !LastHeartbeat || (Game::Com_Milliseconds() - LastHeartbeat) > 120 * 1000) - { - LastHeartbeat = Game::Com_Milliseconds(); - Dedicated::Heartbeat(); - } - }); + if (Dvar::Var("sv_maxclients").get() > 0 && !LastHeartbeat || (Game::Com_Milliseconds() - LastHeartbeat) > 120 * 1000) + { + LastHeartbeat = Game::Com_Milliseconds(); + Dedicated::Heartbeat(); + } + }); #endif - } Dvar::OnInit([] () {