summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
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