summaryrefslogtreecommitdiff
path: root/src/server/sv_client.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2013-01-15 22:05:03 +0000
committerTim Angus <tim@ngus.net>2013-01-15 22:05:03 +0000
commit7eb5f4397d5369e35740c67df664b46069e08ae2 (patch)
treedbcc847f51a1ef07badd1476163e16c8dc74985f /src/server/sv_client.c
parent4e1d3d188461d55aefffd374e094e43c4839e729 (diff)
Remove a bunch of LEGACY_PROTOCOL blocks
Diffstat (limited to 'src/server/sv_client.c')
-rw-r--r--src/server/sv_client.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/server/sv_client.c b/src/server/sv_client.c
index 88231d16..247a1807 100644
--- a/src/server/sv_client.c
+++ b/src/server/sv_client.c
@@ -65,13 +65,7 @@ void SV_GetChallenge(netadr_t from)
gameName = Cmd_Argv(2);
-#ifdef LEGACY_PROTOCOL
- // gamename is optional for legacy protocol
- if (com_legacyprotocol->integer && !*gameName)
- gameMismatch = qfalse;
- else
-#endif
- gameMismatch = !*gameName || strcmp(gameName, com_gamename->string) != 0;
+ gameMismatch = !*gameName || strcmp(gameName, com_gamename->string) != 0;
// reject client if the gamename string sent by the client doesn't match ours
if (gameMismatch)
@@ -1192,15 +1186,8 @@ void SV_UserinfoChanged( client_t *cl ) {
}
#ifdef USE_VOIP
-#ifdef LEGACY_PROTOCOL
- if(cl->compat)
- cl->hasVoip = qfalse;
- else
-#endif
- {
- val = Info_ValueForKey(cl->userinfo, "cl_voip");
- cl->hasVoip = atoi(val);
- }
+ val = Info_ValueForKey(cl->userinfo, "cl_voip");
+ cl->hasVoip = atoi(val);
#endif
// TTimo