From 99c153199e6dc72509af9a94c0d0e7c582e2c66b Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 22 Feb 2009 13:50:17 +0000 Subject: [PATCH] version console command is now common, instead of client only. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3130 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_main.c | 14 -------------- engine/common/common.c | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 078742e61..3f0015a93 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -274,18 +274,6 @@ void CL_Quit_f (void) Sys_Quit (); } -/* -======================= -CL_Version_f -====================== -*/ -void CL_Version_f (void) -{ - Con_TPrintf (TLC_VERSIONST, DISTRIBUTION, build_number()); - - Con_TPrintf (TL_EXEDATETIME, __DATE__, __TIME__); -} - void CL_ConnectToDarkPlaces(char *challenge, netadr_t adr) { char data[2048]; @@ -2984,8 +2972,6 @@ void CL_Init (void) Cmd_AddCommand ("ftp", CL_FTP_f); #endif - Cmd_AddCommand ("version", CL_Version_f); - Cmd_AddCommand ("changing", CL_Changing_f); Cmd_AddCommand ("disconnect", CL_Disconnect_f); Cmd_AddCommand ("record", CL_Record_f); diff --git a/engine/common/common.c b/engine/common/common.c index 7f71bff5f..fd46a8558 100644 --- a/engine/common/common.c +++ b/engine/common/common.c @@ -2658,6 +2658,24 @@ void COM_AddParm (char *parm) largv[com_argc++] = parm; } +/* +======================= +COM_Version_f +====================== +*/ +void COM_Version_f (void) +{ + Con_TPrintf (TLC_VERSIONST, DISTRIBUTION, build_number()); + + Con_TPrintf (TL_EXEDATETIME, __DATE__, __TIME__); + +#ifdef CLIENTONLY + Con_Printf("client-only build\n"); +#endif +#ifdef SERVERONLY + Con_Printf("dedicated server build\n"); +#endif +} /* ================ @@ -2693,6 +2711,7 @@ void COM_Init (void) Cmd_AddCommand ("path", COM_Path_f); //prints a list of current search paths. Cmd_AddCommand ("dir", COM_Dir_f); //q3 like Cmd_AddCommand ("flocate", COM_Locate_f); //prints the pak or whatever where this file can be found. + Cmd_AddCommand ("version", COM_Version_f); //prints the pak or whatever where this file can be found. COM_InitFilesystem ();