mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 06:32:00 +00:00
Fix q3plug-related crashes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6221 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
29f9d620f9
commit
6f5180a915
1 changed files with 3 additions and 2 deletions
|
@ -1253,7 +1253,8 @@ void CL_CheckForResend (void)
|
|||
if (!connectinfo.clogged)
|
||||
{
|
||||
#ifdef Q3CLIENT
|
||||
q3->cl.SendAuthPacket(cls.sockets, to);
|
||||
if (q3)
|
||||
q3->cl.SendAuthPacket(cls.sockets, to);
|
||||
#endif
|
||||
|
||||
if (connectinfo.istransfer || connectinfo.numadr>1)
|
||||
|
@ -1284,7 +1285,7 @@ void CL_CheckForResend (void)
|
|||
{
|
||||
contype |= 1; /*always try qw type connections*/
|
||||
#ifdef VM_UI
|
||||
if (!q3->ui.IsRunning()) //don't try to connect to nq servers when running a q3ui. I was getting annoying error messages from q3 servers due to this.
|
||||
if (!(q3&&q3->ui.IsRunning())) //don't try to connect to nq servers when running a q3ui. I was getting annoying error messages from q3 servers due to this.
|
||||
#endif
|
||||
contype |= 2; /*try nq connections periodically (or if its the default nq port)*/
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue