Skip to content

Commit

Permalink
Fix proxy module build
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Dec 14, 2024
1 parent 02c4fc4 commit 07227db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rehlds/HLTV/Proxy/src/Master.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void Master::RunFrame(double time)
INetwork *network = m_MasterSocket->GetNetwork();
NetAddress *netAdr = network->GetLocalAddress();

if (SteamGameServer_Init(ntohl(*(u_long *)&netAdr->m_IP[0]), 0, 0, 0xFFFFu, eServerModeNoAuthentication, MASTER_VERSION))
if (SteamGameServer_Init(ntohl(*(u_long *)&netAdr->m_IP[0]), 0, 0xFFFFu, eServerModeNoAuthentication, MASTER_VERSION))
{
SteamGameServer()->SetProduct("hltv");
SteamGameServer()->SetGameDescription("hltv");
Expand All @@ -141,7 +141,7 @@ void Master::RunFrame(double time)
SteamGameServer()->SetSpectatorPort(htons(netAdr->m_Port));
SteamGameServer()->LogOnAnonymous();

SteamGameServer()->EnableHeartbeats(true);
SteamGameServer()->SetAdvertiseServerActive(true);
}
else
{
Expand Down Expand Up @@ -221,7 +221,7 @@ void Master::CMD_Heartbeat(char *cmdLine)
}

if (SteamGameServer()) {
SteamGameServer()->ForceHeartbeat();
SteamGameServer()->ForceMasterServerHeartbeat();
}
}

Expand All @@ -243,7 +243,7 @@ void Master::CMD_NoMaster(char *cmdLine)
m_NoMaster = Q_atoi(params.GetToken(1)) ? true : false;

if (bOldMasterState != m_NoMaster) {
SteamGameServer()->EnableHeartbeats(m_NoMaster);
SteamGameServer()->SetAdvertiseServerActive(m_NoMaster);
}
}

Expand Down Expand Up @@ -287,7 +287,7 @@ void Master::SendShutdown()
}

if (SteamGameServer()) {
SteamGameServer()->EnableHeartbeats(false);
SteamGameServer()->SetAdvertiseServerActive(false);
}
}

Expand Down

0 comments on commit 07227db

Please # to comment.