summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2011-01-26 16:38:04 +0100
committerReiner Herrmann <reiner@reiner-h.de>2011-01-26 16:38:04 +0100
commitc40db03137e77317f37b1822481feb28a01f6e2c (patch)
treea037f1cad0bb95510cae46d7832ce0e95f7e9854 /src/game.c
parent239eafca2c64f13f580dfa4359ff6fce31608b7c (diff)
start server as child, not as parent; fixes terminal fuckup problem on exit
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.c b/src/game.c
index 2f7231a..9c0f353 100644
--- a/src/game.c
+++ b/src/game.c
@@ -99,7 +99,7 @@ void start_game(const bool servermode, const char* addr, const char* port, const
if(servermode)
{
pid_t child = fork();
- server_process = (child > 0);
+ server_process = (child == 0);
}
if(server_process) // Start server and connect to localhost