mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-08 07:12:00 +00:00
Add *qf_version userinfo when connecting to QF servers.
This commit is contained in:
parent
6f40c97643
commit
c8fcb1cf22
1 changed files with 3 additions and 2 deletions
|
@ -679,8 +679,8 @@ CL_AddQFInfoKeys ()
|
||||||
strncat (cap, "z", sizeof (cap) - strlen (cap) - 1);
|
strncat (cap, "z", sizeof (cap) - strlen (cap) - 1);
|
||||||
#endif
|
#endif
|
||||||
Info_SetValueForStarKey (cls.userinfo, "*cap", cap, MAX_INFO_STRING);
|
Info_SetValueForStarKey (cls.userinfo, "*cap", cap, MAX_INFO_STRING);
|
||||||
Info_SetValueForStarKey (cls.userinfo, "*qsg_version", QSG_VERSION,
|
Info_SetValueForStarKey (cls.userinfo, "*qf_version", VERSION, MAX_INFO_STRING);
|
||||||
MAX_SERVERINFO_STRING);
|
Info_SetValueForStarKey (cls.userinfo, "*qsg_version", QSG_VERSION, MAX_INFO_STRING);
|
||||||
Con_Printf ("QuakeForge server detected\n");
|
Con_Printf ("QuakeForge server detected\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -693,6 +693,7 @@ void
|
||||||
CL_RemoveQFInfoKeys ()
|
CL_RemoveQFInfoKeys ()
|
||||||
{
|
{
|
||||||
Info_RemoveKey (cls.userinfo, "*cap");
|
Info_RemoveKey (cls.userinfo, "*cap");
|
||||||
|
Info_RemoveKey (cls.userinfo, "*qf_version");
|
||||||
Info_RemoveKey (cls.userinfo, "*qsg_version");
|
Info_RemoveKey (cls.userinfo, "*qsg_version");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue