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
This commit is contained in:
Spoike 2009-02-22 13:50:17 +00:00
parent eff6909662
commit 99c153199e
2 changed files with 19 additions and 14 deletions

View File

@ -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);

View File

@ -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 ();