]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Merge Cmd_Init_Commands into Cmd_Init
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 21 Jun 2020 19:54:46 +0000 (19:54 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 21 Jun 2020 19:54:46 +0000 (19:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12710 d7cf8633-e32d-0410-b094-e92efae38249

cmd.c
cmd.h
host.c

diff --git a/cmd.c b/cmd.c
index f3d0a1cb1a5bbefeb92db6535b33eba2d03e4f3d..f7d84dc2c21f55023b5d270c54b460dc59c09714 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -1518,10 +1518,7 @@ void Cmd_Init(void)
        cmd_serverfromclient.cvars_flagsmask = 0;
        cmd_serverfromclient.cmd_flags = CMD_SERVER_FROM_CLIENT;
        cmd_serverfromclient.userdefined = &cmd_userdefined_null;
-}
 
-void Cmd_Init_Commands(qboolean dedicated_server)
-{
 //
 // register our commands
 //
diff --git a/cmd.h b/cmd.h
index 8badf436735d13e5ced818463af5982a9d81b245..4ada5896e6c65f445153c90a2be4e2da470d1300 100644 (file)
--- a/cmd.h
+++ b/cmd.h
@@ -151,8 +151,6 @@ extern qboolean host_stuffcmdsrun;
 void Cbuf_Lock(cmd_state_t *cmd);
 void Cbuf_Unlock(cmd_state_t *cmd);
 
-void Cmd_Init_Commands(qboolean dedicated_server);
-
 /*! as new commands are generated from the console or keybindings,
  * the text is added to the end of the command buffer.
  */
diff --git a/host.c b/host.c
index a50e5a27df154929aea1d379216fe7a5a7c7aa14..1b935c7e8eb333bec47203447881ff77765694de 100644 (file)
--- a/host.c
+++ b/host.c
@@ -1160,7 +1160,6 @@ static void Host_Init (void)
        int i;
        const char* os;
        char vabuf[1024];
-       qboolean dedicated_server = COM_CheckParm("-dedicated") || !cl_available;
        cmd_state_t *cmd = &cmd_client;
 
        host.state = host_init;
@@ -1214,8 +1213,6 @@ static void Host_Init (void)
        // initialize console command/cvar/alias/command execution systems
        Cmd_Init();
 
-       Cmd_Init_Commands(dedicated_server);
-
        // initialize memory subsystem cvars/commands
        Memory_Init_Commands();