2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-16 08:38:10 +03:00

Fixes wrong port sending via steamapi

This commit is contained in:
s1lent 2017-05-07 19:09:02 +07:00
parent ba25dfb20a
commit 759f51552e
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -132,7 +132,7 @@ void Master::RunFrame(double time)
SteamGameServer()->SetGameDescription("hltv"); SteamGameServer()->SetGameDescription("hltv");
SteamGameServer()->SetModDir(world->GetGameDir()); SteamGameServer()->SetModDir(world->GetGameDir());
SteamGameServer()->SetDedicatedServer(true); SteamGameServer()->SetDedicatedServer(true);
SteamGameServer()->SetSpectatorPort(netAdr->m_Port); SteamGameServer()->SetSpectatorPort(htons(netAdr->m_Port));
SteamGameServer()->LogOnAnonymous(); SteamGameServer()->LogOnAnonymous();
SteamGameServer()->EnableHeartbeats(true); SteamGameServer()->EnableHeartbeats(true);