Skip to content

Commit 4effc54

Browse files
committed
UpdateServerDataAndRefresh should not force refresh early
1 parent 89eea83 commit 4effc54

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/game/server/tf/tf_gc_server.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2815,12 +2815,13 @@ void CTFGCServerSystem::UpdateServerDataAndRefresh()
28152815
m_bInSteamServerFrame = false;
28162816
return;
28172817
}
2818-
if ( m_flNextGameServerDataUpdate > 0.0 && m_flNextGameServerDataUpdate <= CRTime::RTime32TimeCur() )
2818+
// if this isn't an early update, then fulfill the update.
2819+
// we want this to act as a queue, so we don't want to fulfill too early.
2820+
if ( m_flNextGameServerDataUpdate > CRTime::RTime32TimeCur() )
28192821
{
2820-
// if this isn't an early update, then fulfill the update.
2821-
// we want this to act as a queue, so we don't want to fulfill too early.
2822-
m_flNextGameServerDataUpdate = 0.0;
2822+
return;
28232823
}
2824+
m_flNextGameServerDataUpdate = 0.0;
28242825
IServer* pGameServer = engine->GetIServer();
28252826
netadr_t netAdrIP;
28262827
if ( pGameServer )

0 commit comments

Comments
 (0)