From 352eb5ece4e91eed2f556877785de57fc61286f7 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 23 Feb 2012 11:23:53 +0900 Subject: [PATCH] Move console init to after vid/render init. --- qw/source/cl_main.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/qw/source/cl_main.c b/qw/source/cl_main.c index e7c73571f..2bca3657d 100644 --- a/qw/source/cl_main.c +++ b/qw/source/cl_main.c @@ -1183,6 +1183,18 @@ CL_Init (void) IN_Init (cl_cbuf); Mod_Init (); R_Init (); + + PI_RegisterPlugins (client_plugin_list); + Con_Init ("client"); + if (con_module) { + con_module->data->console->dl_name = cls.downloadname; + con_module->data->console->dl_percent = &cls.downloadpercent; + con_module->data->console->realtime = &con_realtime; + con_module->data->console->frametime = &con_frametime; + con_module->data->console->quit = CL_Quit_f; + con_module->data->console->cbuf = cl_cbuf; + } + S_Init (&viewentity, &host_frametime); CDAudio_Init (); @@ -1802,17 +1814,6 @@ Host_Init (void) CL_Cmd_Init (); Game_Init (); - PI_RegisterPlugins (client_plugin_list); - Con_Init ("client"); - if (con_module) { - con_module->data->console->dl_name = cls.downloadname; - con_module->data->console->dl_percent = &cls.downloadpercent; - con_module->data->console->realtime = &con_realtime; - con_module->data->console->frametime = &con_frametime; - con_module->data->console->quit = CL_Quit_f; - con_module->data->console->cbuf = cl_cbuf; - } - NET_Init (cl_port->int_val); Netchan_Init (); net_realtime = &realtime;