Commit d1eadadd authored by Artem Golubikhin's avatar Artem Golubikhin

Merge branch 'removed-deprecated-code' into 'general'

Deprecated code removal: removed `setmaster` command

See merge request !2
parents 616e7855 6f5143f3
......@@ -3146,7 +3146,6 @@ void Host_InitCommands(void)
Cmd_AddCommand("mcache", Mod_Print);
Cmd_AddCommand("interp", Host_Interp_f);
Cmd_AddCommand("setmaster", Master_SetMaster_f);
Cmd_AddCommand("heartbeat", Master_Heartbeat_f);
#ifdef REHLDS_FIXES
......
......@@ -857,46 +857,6 @@ CSteam3Client *Steam3Client()
return &s_Steam3Client;
}
void Master_SetMaster_f()
{
int i;
const char * pszCmd;
i = Cmd_Argc();
if (!Steam3Server())
{
Con_Printf("Usage:\nSetmaster unavailable, start a server first.\n");
return;
}
if (i < 2 || i > 5)
{
Con_Printf("Usage:\nSetmaster <enable | disable>\n");
return;
}
pszCmd = Cmd_Argv(1);
if (!pszCmd || !pszCmd[0])
return;
if (Q_stricmp(pszCmd, "disable") || gfNoMasterServer)
{
if (!Q_stricmp(pszCmd, "enable"))
{
if (gfNoMasterServer)
{
gfNoMasterServer = FALSE;
CRehldsPlatformHolder::get()->SteamGameServer()->EnableHeartbeats(gfNoMasterServer != 0);
}
}
}
else
{
gfNoMasterServer = TRUE;
CRehldsPlatformHolder::get()->SteamGameServer()->EnableHeartbeats(gfNoMasterServer != 0);
}
}
void Steam_HandleIncomingPacket(byte *data, int len, int fromip, uint16 port)
{
CRehldsPlatformHolder::get()->SteamGameServer()->HandleIncomingPacket(data, len, fromip, port);
......
......@@ -154,5 +154,4 @@ uint64 Steam_StringToSteamID(const char *pStr);
const char *Steam_GetGSUniverse();
CSteam3Server *Steam3Server();
CSteam3Client *Steam3Client();
void Master_SetMaster_f();
void Steam_HandleIncomingPacket(byte *data, int len, int fromip, uint16 port);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment