Works with gamespy now.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@689 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-12-25 02:06:27 +00:00
parent 87f7ea06ef
commit f89c9464ce
2 changed files with 9 additions and 8 deletions

View file

@ -1528,7 +1528,6 @@ void CL_ConnectionlessPacket (void)
{ {
char *s; char *s;
int c; int c;
MSG_BeginReading (); MSG_BeginReading ();
MSG_ReadLong (); // skip the -1 MSG_ReadLong (); // skip the -1
@ -1727,7 +1726,7 @@ client_connect: //fixme: make function
return; return;
} }
// remote command from gui front end // remote command from gui front end
if (c == A2C_CLIENT_COMMAND) if (c == A2C_CLIENT_COMMAND) //man I hate this.
{ {
char cmdtext[2048]; char cmdtext[2048];
@ -1768,7 +1767,7 @@ client_connect: //fixme: make function
return; return;
} }
Cbuf_AddText (cmdtext, RESTRICT_LOCAL); Cbuf_AddText (cmdtext, RESTRICT_SERVER);
allowremotecmd = false; allowremotecmd = false;
return; return;
} }

View file

@ -488,10 +488,12 @@ void Sys_Init (void)
// LARGE_INTEGER PerformanceFreq; // LARGE_INTEGER PerformanceFreq;
// unsigned int lowpart, highpart; // unsigned int lowpart, highpart;
OSVERSIONINFO vinfo; OSVERSIONINFO vinfo;
/*
#ifndef SERVERONLY #ifndef SERVERONLY
#ifndef CLIENTONLY #ifndef CLIENTONLY
if (!isDedicated) if (!isDedicated && !COM_CheckParm("-nomutex"))
#else
if (!COM_CheckParm("-nomutex")) //we need to create a mutex to allow gamespy to realise that we're running, but it might not be desired as it prevents other clients from running too.
#endif #endif
{ {
// allocate a named semaphore on the client so the // allocate a named semaphore on the client so the
@ -513,7 +515,7 @@ void Sys_Init (void)
"qwcl"); // Semaphore name "qwcl"); // Semaphore name
} }
#endif #endif
*/
MaskExceptions (); MaskExceptions ();
Sys_SetFPCW (); Sys_SetFPCW ();
@ -985,8 +987,8 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
static char cwd[1024]; static char cwd[1024];
int t; int t;
RECT rect; RECT rect;
/* previous instances do not exist in Win32 */ /* previous instances do not exist in Win32 */
if (hPrevInstance) if (hPrevInstance)
return 0; return 0;