mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
dedicated server needs/wants the text (server) console plugin, not the
console plugin (ie, when static)
This commit is contained in:
parent
f8baa5be27
commit
7d82daa127
1 changed files with 10 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue