From 7d82daa1275ae6f0bfd0f61c7f9aaa7ef8e12589 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 19 Dec 2003 03:41:58 +0000 Subject: [PATCH] dedicated server needs/wants the text (server) console plugin, not the console plugin (ie, when static) --- nq/source/host.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/nq/source/host.c b/nq/source/host.c index db501388c..d1e9debf8 100644 --- a/nq/source/host.c +++ b/nq/source/host.c @@ -71,6 +71,11 @@ static __attribute__ ((unused)) const char rcsid[] = Memory is cleared/released when a server or client begins, not when they end. */ +SERVER_PLUGIN_PROTOS +static plugin_list_t server_plugin_list[] = { + SERVER_PLUGIN_LIST +}; + CLIENT_PLUGIN_PROTOS static plugin_list_t client_plugin_list[] = { CLIENT_PLUGIN_LIST @@ -918,11 +923,13 @@ Host_Init (void) Game_Init (); COM_Init (); - PI_RegisterPlugins (client_plugin_list); - if (isDedicated) + if (isDedicated) { + PI_RegisterPlugins (server_plugin_list); Con_Init ("server"); - else + } else { + PI_RegisterPlugins (client_plugin_list); Con_Init ("client"); + } if (con_module) { con_module->data->console->realtime = &con_realtime; con_module->data->console->frametime = &con_frametime;