2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-28 06:28:06 +03:00

Merge pull request #463 from s1lentq/hltv-fixport

HLTV: Fixes wrong port sending via steamapi
This commit is contained in:
Dmitry Novikov 2017-05-07 15:40:25 +03:00 committed by GitHub
commit 3c05dad7a7

View File

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