mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Move some command and cvar registering between D_RegisterServerCommands and D_RegisterClientCommands depending on whether a dedicated server needs them or not
This commit is contained in:
parent
11209c5d24
commit
0f471b1cf1
1 changed files with 21 additions and 20 deletions
|
|
@ -802,8 +802,6 @@ void D_RegisterServerCommands(void)
|
||||||
CV_RegisterVar(&cv_pingmeasurement);
|
CV_RegisterVar(&cv_pingmeasurement);
|
||||||
CV_RegisterVar(&cv_showviewpointtext);
|
CV_RegisterVar(&cv_showviewpointtext);
|
||||||
|
|
||||||
CV_RegisterVar(&cv_director);
|
|
||||||
|
|
||||||
CV_RegisterVar(&cv_schedule);
|
CV_RegisterVar(&cv_schedule);
|
||||||
CV_RegisterVar(&cv_automate);
|
CV_RegisterVar(&cv_automate);
|
||||||
CV_RegisterVar(&cv_livestudioaudience);
|
CV_RegisterVar(&cv_livestudioaudience);
|
||||||
|
|
@ -816,6 +814,23 @@ void D_RegisterServerCommands(void)
|
||||||
|
|
||||||
CV_RegisterVar(&cv_discordinvites);
|
CV_RegisterVar(&cv_discordinvites);
|
||||||
RegisterNetXCmd(XD_DISCORD, Got_DiscordInfo);
|
RegisterNetXCmd(XD_DISCORD, Got_DiscordInfo);
|
||||||
|
|
||||||
|
COM_AddCommand("numthinkers", Command_Numthinkers_f);
|
||||||
|
COM_AddCommand("countmobjs", Command_CountMobjs_f);
|
||||||
|
|
||||||
|
CV_RegisterVar(&cv_recordmultiplayerdemos);
|
||||||
|
CV_RegisterVar(&cv_netdemosyncquality);
|
||||||
|
|
||||||
|
CV_RegisterVar(&cv_shoutname);
|
||||||
|
CV_RegisterVar(&cv_shoutcolor);
|
||||||
|
CV_RegisterVar(&cv_autoshout);
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
|
COM_AddCommand("causecfail", Command_CauseCfail_f);
|
||||||
|
#endif
|
||||||
|
#ifdef LUA_ALLOW_BYTECODE
|
||||||
|
COM_AddCommand("dumplua", Command_Dumplua_f);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// =========================================================================
|
// =========================================================================
|
||||||
|
|
@ -860,9 +875,6 @@ void D_RegisterClientCommands(void)
|
||||||
if (dedicated)
|
if (dedicated)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
COM_AddCommand("numthinkers", Command_Numthinkers_f);
|
|
||||||
COM_AddCommand("countmobjs", Command_CountMobjs_f);
|
|
||||||
|
|
||||||
COM_AddCommand("changeteam", Command_Teamchange_f);
|
COM_AddCommand("changeteam", Command_Teamchange_f);
|
||||||
COM_AddCommand("changeteam2", Command_Teamchange2_f);
|
COM_AddCommand("changeteam2", Command_Teamchange2_f);
|
||||||
COM_AddCommand("changeteam3", Command_Teamchange3_f);
|
COM_AddCommand("changeteam3", Command_Teamchange3_f);
|
||||||
|
|
@ -958,9 +970,6 @@ void D_RegisterClientCommands(void)
|
||||||
|
|
||||||
COM_AddCommand("displayplayer", Command_Displayplayer_f);
|
COM_AddCommand("displayplayer", Command_Displayplayer_f);
|
||||||
|
|
||||||
CV_RegisterVar(&cv_recordmultiplayerdemos);
|
|
||||||
CV_RegisterVar(&cv_netdemosyncquality);
|
|
||||||
|
|
||||||
// FIXME: not to be here.. but needs be done for config loading
|
// FIXME: not to be here.. but needs be done for config loading
|
||||||
CV_RegisterVar(&cv_globalgamma);
|
CV_RegisterVar(&cv_globalgamma);
|
||||||
CV_RegisterVar(&cv_globalsaturation);
|
CV_RegisterVar(&cv_globalsaturation);
|
||||||
|
|
@ -996,10 +1005,6 @@ void D_RegisterClientCommands(void)
|
||||||
CV_RegisterVar(&cv_chatnotifications);
|
CV_RegisterVar(&cv_chatnotifications);
|
||||||
CV_RegisterVar(&cv_chatbacktint);
|
CV_RegisterVar(&cv_chatbacktint);
|
||||||
|
|
||||||
CV_RegisterVar(&cv_shoutname);
|
|
||||||
CV_RegisterVar(&cv_shoutcolor);
|
|
||||||
CV_RegisterVar(&cv_autoshout);
|
|
||||||
|
|
||||||
CV_RegisterVar(&cv_songcredits);
|
CV_RegisterVar(&cv_songcredits);
|
||||||
CV_RegisterVar(&cv_tutorialprompt);
|
CV_RegisterVar(&cv_tutorialprompt);
|
||||||
CV_RegisterVar(&cv_showfocuslost);
|
CV_RegisterVar(&cv_showfocuslost);
|
||||||
|
|
@ -1047,7 +1052,6 @@ void D_RegisterClientCommands(void)
|
||||||
// screen.c
|
// screen.c
|
||||||
CV_RegisterVar(&cv_fullscreen);
|
CV_RegisterVar(&cv_fullscreen);
|
||||||
CV_RegisterVar(&cv_renderview);
|
CV_RegisterVar(&cv_renderview);
|
||||||
CV_RegisterVar(&cv_renderhitbox);
|
|
||||||
CV_RegisterVar(&cv_vhseffect);
|
CV_RegisterVar(&cv_vhseffect);
|
||||||
CV_RegisterVar(&cv_shittyscreen);
|
CV_RegisterVar(&cv_shittyscreen);
|
||||||
CV_RegisterVar(&cv_renderer);
|
CV_RegisterVar(&cv_renderer);
|
||||||
|
|
@ -1055,6 +1059,8 @@ void D_RegisterClientCommands(void)
|
||||||
CV_RegisterVar(&cv_scr_width);
|
CV_RegisterVar(&cv_scr_width);
|
||||||
CV_RegisterVar(&cv_scr_height);
|
CV_RegisterVar(&cv_scr_height);
|
||||||
|
|
||||||
|
CV_RegisterVar(&cv_director);
|
||||||
|
|
||||||
CV_RegisterVar(&cv_soundtest);
|
CV_RegisterVar(&cv_soundtest);
|
||||||
|
|
||||||
CV_RegisterVar(&cv_invincmusicfade);
|
CV_RegisterVar(&cv_invincmusicfade);
|
||||||
|
|
@ -1075,7 +1081,7 @@ void D_RegisterClientCommands(void)
|
||||||
// CV_RegisterVar(&cv_grid);
|
// CV_RegisterVar(&cv_grid);
|
||||||
// CV_RegisterVar(&cv_snapto);
|
// CV_RegisterVar(&cv_snapto);
|
||||||
|
|
||||||
// add cheat commands
|
// add cheats
|
||||||
COM_AddCommand("noclip", Command_CheatNoClip_f);
|
COM_AddCommand("noclip", Command_CheatNoClip_f);
|
||||||
COM_AddCommand("god", Command_CheatGod_f);
|
COM_AddCommand("god", Command_CheatGod_f);
|
||||||
COM_AddCommand("setrings", Command_Setrings_f);
|
COM_AddCommand("setrings", Command_Setrings_f);
|
||||||
|
|
@ -1089,12 +1095,7 @@ void D_RegisterClientCommands(void)
|
||||||
COM_AddCommand("rteleport", Command_RTeleport_f);
|
COM_AddCommand("rteleport", Command_RTeleport_f);
|
||||||
COM_AddCommand("skynum", Command_Skynum_f);
|
COM_AddCommand("skynum", Command_Skynum_f);
|
||||||
COM_AddCommand("weather", Command_Weather_f);
|
COM_AddCommand("weather", Command_Weather_f);
|
||||||
#ifdef _DEBUG
|
CV_RegisterVar(&cv_renderhitbox);
|
||||||
COM_AddCommand("causecfail", Command_CauseCfail_f);
|
|
||||||
#endif
|
|
||||||
#ifdef LUA_ALLOW_BYTECODE
|
|
||||||
COM_AddCommand("dumplua", Command_Dumplua_f);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_DISCORDRPC
|
#ifdef HAVE_DISCORDRPC
|
||||||
CV_RegisterVar(&cv_discordrp);
|
CV_RegisterVar(&cv_discordrp);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue