Skip to content

Commit

Permalink
USERINFO: Add *ver
Browse files Browse the repository at this point in the history
Add version and git hash to the client's userinfo string.
  • Loading branch information
osm committed Jan 29, 2025
1 parent cf8de33 commit 211fad6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cl_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1932,6 +1932,12 @@ static void CL_InitLocal(void)

Info_SetValueForStarKey (cls.userinfo, "*client", st, MAX_INFO_STRING);

memset(st, 0, sizeof(st));
snprintf(st, sizeof(st), "ezQuake v%s %s", VERSION_NUMBER, VERSION);
Info_SetValueForStarKey(cls.userinfo, "*ver", st, MAX_INFO_STRING);

Com_Printf("DEBUG: %s\n", cls.userinfo);

if (COM_CheckParm(cmdline_param_client_noindphys))
{
Cvar_SetValue(&cl_independentPhysics, 0);
Expand Down

0 comments on commit 211fad6

Please sign in to comment.