mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-07 15:51:09 +00:00
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
This commit is contained in:
parent
bce372f236
commit
22360e35dd
1 changed files with 4 additions and 4 deletions
|
@ -433,6 +433,10 @@ qboolean Net_ConnectToServer(sv_t *qtv, char *ip)
|
||||||
char *at;
|
char *at;
|
||||||
qboolean status;
|
qboolean status;
|
||||||
|
|
||||||
|
at = strchrrev(ip, '@');
|
||||||
|
if (at)
|
||||||
|
ip = at+1;
|
||||||
|
|
||||||
qtv->usequkeworldprotocols = false;
|
qtv->usequkeworldprotocols = false;
|
||||||
|
|
||||||
if (!strncmp(ip, "file:", 5) || !strncmp(ip, "demo:", 5))
|
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
|
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))
|
if (!strncmp(ip, "udp:", 4))
|
||||||
{
|
{
|
||||||
qtv->usequkeworldprotocols = true;
|
qtv->usequkeworldprotocols = true;
|
||||||
|
|
Loading…
Reference in a new issue