diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-11-08 09:20:55 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-11-08 09:20:55 +0000 |
| commit | 6b6b79d7ae80d9892a54065f042e1877a16d373e (patch) | |
| tree | 31e0f5ce551e71930d49f589bb686cfde319e658 /src/engine/client/client.c | |
| parent | 5fa862c8d4c5bf1a96c5f0d9b5234f38550c7d8c (diff) | |
| download | zcatch-6b6b79d7ae80d9892a54065f042e1877a16d373e.tar.gz zcatch-6b6b79d7ae80d9892a54065f042e1877a16d373e.zip | |
minor direct connection bug fixed
Diffstat (limited to 'src/engine/client/client.c')
| -rw-r--r-- | src/engine/client/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/client/client.c b/src/engine/client/client.c index 3246a7d6..092f6805 100644 --- a/src/engine/client/client.c +++ b/src/engine/client/client.c @@ -358,7 +358,7 @@ int *client_get_input(int tick) } /* ------ state handling ----- */ -static int state; +static int state = CLIENTSTATE_OFFLINE; int client_state() { return state; } static void client_set_state(int s) { @@ -836,7 +836,7 @@ static void client_run() net = netclient_open(bindaddr, 0); /* connect to the server if wanted */ - if(config.cl_connect) + if(config.cl_connect[0] != 0) client_connect(config.cl_connect); inp_mouse_mode_relative(); |