aboutsummaryrefslogtreecommitdiff
path: root/src/steam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/steam.c')
-rw-r--r--src/steam.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/steam.c b/src/steam.c
index f28272c..de22787 100644
--- a/src/steam.c
+++ b/src/steam.c
@@ -239,14 +239,13 @@ long getSteamPID(void)
return -1;
}
-#define STEAM_LAUNCH
-
int runOpenFortress(char** args, size_t arg_count)
{
#ifdef STEAM_DIRECT_LAUNCH
int in_fork = 0;
#if defined(__linux__) || defined(__FreeBSD__)
// fork so we don't have to stay alive for the game
+ if (fork()) return 0;
#endif
char* game = getSourceSDK2013MpDir();
if (!game)