diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-09-09 21:24:00 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-09-09 21:24:00 +0200 |
commit | fe54b8e612759faa7e479d5bc33fd1bc4b4f357f (patch) | |
tree | aa4b8b541902f68f5bd49d3c0cb0a684bc1209d7 /src | |
parent | a4da54ddf1d41f5bbadf54be7f025a9e7a928eff (diff) | |
download | OFQT-fe54b8e612759faa7e479d5bc33fd1bc4b4f357f.tar.gz OFQT-fe54b8e612759faa7e479d5bc33fd1bc4b4f357f.zip |
correct revision size logic, readd fork
Diffstat (limited to 'src')
-rw-r--r-- | src/steam.c | 3 | ||||
-rw-r--r-- | src/toast.c | 2 |
2 files changed, 2 insertions, 3 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) diff --git a/src/toast.c b/src/toast.c index 4c26142..44f8b86 100644 --- a/src/toast.c +++ b/src/toast.c @@ -310,7 +310,7 @@ struct revision_t* getRevisionData(char* url, int rev) { int rev_copy = rev; - while (rev_copy > 10) + while (rev_copy >= 10) { rev_copy /= 10; rev_len++; |