2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2025-01-10 10:25:37 +01:00

engine: server: send heartbeats to master server if sv_nat is active, despite public cvar value

This commit is contained in:
Alibek Omarov 2023-03-01 15:57:08 +03:00
parent 602f23fbdf
commit 474833a3bf

View File

@ -716,7 +716,7 @@ let it know we are alive, and log information
*/ */
static void Master_Heartbeat( void ) static void Master_Heartbeat( void )
{ {
if( !public_server->value || svs.maxclients == 1 ) if(( !public_server->value && !sv_nat.value ) || svs.maxclients == 1 )
return; // only public servers send heartbeats return; // only public servers send heartbeats
// check for time wraparound // check for time wraparound