From 22360e35dd7edb3eb49d26fffedfc90523e95958 Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 27 Oct 2006 16:12:07 +0000 Subject: [PATCH] Small tweek so you can stream demos off a different proxy. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2436 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- fteqtv/source.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fteqtv/source.c b/fteqtv/source.c index 4b436e783..785368703 100644 --- a/fteqtv/source.c +++ b/fteqtv/source.c @@ -433,6 +433,10 @@ qboolean Net_ConnectToServer(sv_t *qtv, char *ip) char *at; qboolean status; + at = strchrrev(ip, '@'); + if (at) + ip = at+1; + qtv->usequkeworldprotocols = false; if (!strncmp(ip, "file:", 5) || !strncmp(ip, "demo:", 5)) @@ -452,10 +456,6 @@ qboolean Net_ConnectToServer(sv_t *qtv, char *ip) qtv->nextconnectattempt = qtv->curtime + RECONNECT_TIME; //wait half a minuite before trying to reconnect - at = strchrrev(ip, '@'); - if (at) - ip = at+1; - if (!strncmp(ip, "udp:", 4)) { qtv->usequkeworldprotocols = true;