diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-03-22 11:45:48 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-03-22 11:45:48 +0000 |
| commit | 7797a651676ec47ab79222210f50c5aa4da80d7f (patch) | |
| tree | 41bbd5f147fe6afc250522266abc4d7d6e2a270c /src/engine/client | |
| parent | bede40f27d36f71014d7f4f3a1f1ae14f52caf0c (diff) | |
| download | zcatch-7797a651676ec47ab79222210f50c5aa4da80d7f.tar.gz zcatch-7797a651676ec47ab79222210f50c5aa4da80d7f.zip | |
changed the bindings commands to bind, unbind and dump_binds. added broadcast messages. fixed so that cl_editor works
Diffstat (limited to 'src/engine/client')
| -rw-r--r-- | src/engine/client/ec_client.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/engine/client/ec_client.c b/src/engine/client/ec_client.c index b40fbb4f..b9b1165c 100644 --- a/src/engine/client/ec_client.c +++ b/src/engine/client/ec_client.c @@ -1221,7 +1221,6 @@ static void client_run() NETADDR4 bindaddr; int64 reporttime = time_get(); int64 reportinterval = time_freq()*1; - int editor_active = 0; static PERFORMACE_INFO rootscope = {"root", 0}; perf_start(&rootscope); @@ -1260,6 +1259,9 @@ static void client_run() client_connect(config.cl_connect); config.cl_connect[0] = 0; */ + + /* never start with the editor */ + config.cl_editor = 0; inp_mouse_mode_relative(); @@ -1315,13 +1317,13 @@ static void client_run() break; if(inp_key_pressed(KEY_LCTRL) && inp_key_pressed(KEY_LSHIFT) && inp_key_down('E')) - editor_active = editor_active^1; + config.cl_editor = config.cl_editor^1; if(!gfx_window_open()) break; /* render */ - if(editor_active) + if(config.cl_editor) { client_update(); editor_update_and_render(); |