Add *qf_version userinfo when connecting to QF servers.

This commit is contained in:
Jeff Teunissen 2000-11-25 14:22:09 +00:00
parent 6f40c97643
commit c8fcb1cf22

View file

@ -679,8 +679,8 @@ CL_AddQFInfoKeys ()
strncat (cap, "z", sizeof (cap) - strlen (cap) - 1);
#endif
Info_SetValueForStarKey (cls.userinfo, "*cap", cap, MAX_INFO_STRING);
Info_SetValueForStarKey (cls.userinfo, "*qsg_version", QSG_VERSION,
MAX_SERVERINFO_STRING);
Info_SetValueForStarKey (cls.userinfo, "*qf_version", VERSION, MAX_INFO_STRING);
Info_SetValueForStarKey (cls.userinfo, "*qsg_version", QSG_VERSION, MAX_INFO_STRING);
Con_Printf ("QuakeForge server detected\n");
}
@ -693,6 +693,7 @@ void
CL_RemoveQFInfoKeys ()
{
Info_RemoveKey (cls.userinfo, "*cap");
Info_RemoveKey (cls.userinfo, "*qf_version");
Info_RemoveKey (cls.userinfo, "*qsg_version");
}