diff --git a/src/xrGame/xrServer.cpp b/src/xrGame/xrServer.cpp index d65c84f1b8e..6bdc62c9504 100644 --- a/src/xrGame/xrServer.cpp +++ b/src/xrGame/xrServer.cpp @@ -829,8 +829,11 @@ void xrServer::Server_Client_Check(IClient* CL) { return; }; -#ifndef LINUX // FIXME!!! +#ifdef LINUX // FIXME!!! + if (CL->process_id == getpid()) +#else if (CL->process_id == GetCurrentProcessId()) +#endif { CL->flags.bLocal = 1; SV_Client = (xrClientData*)CL; @@ -840,7 +843,6 @@ void xrServer::Server_Client_Check(IClient* CL) { CL->flags.bLocal = 0; } -#endif }; bool xrServer::OnCL_QueryHost() @@ -986,7 +988,9 @@ void xrServer::create_direct_client() SClientConnectData cl_data; cl_data.clientID.set(1); xr_strcpy(cl_data.name, "single_player"); -#ifndef LINUX // FIXME!!! +#ifdef LINUX + cl_data.process_id = getpid(); +#else cl_data.process_id = GetCurrentProcessId(); #endif new_client(&cl_data);