mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 00:30:38 +00:00
Cvar merge... segfault problems... also unknown problems in vid_svga.c
This commit is contained in:
parent
5c58a21a1c
commit
1d26c02826
74 changed files with 4288 additions and 1509 deletions
|
@ -29,27 +29,29 @@
|
|||
#include "qwsvdef.h"
|
||||
|
||||
void SV_SendServerInfoChange(char *key, char *value);
|
||||
extern cvar_t sv_highchars;
|
||||
/* extern cvar_t sv_highchars;
|
||||
CVAR_FIXME */
|
||||
extern cvar_t *sv_highchars;
|
||||
|
||||
void
|
||||
Cvar_Info(cvar_t *var)
|
||||
{
|
||||
if (var->info)
|
||||
{
|
||||
unsigned char info[1024],*p, *c;
|
||||
if (var->flags & CVAR_SERVERINFO)
|
||||
{
|
||||
unsigned char info[1024],*p, *c;
|
||||
|
||||
for (p=info, c=var->string; *c && (p-info<sizeof(info)-1); c++, p++) {
|
||||
if (!sv_highchars.value) {
|
||||
*c &= 127;
|
||||
if (*c < 32 || *c > 127)
|
||||
continue;
|
||||
*p = *c;
|
||||
}
|
||||
}
|
||||
*p=0;
|
||||
for (p=info, c=var->string; *c && (p-info<sizeof(info)-1); c++, p++) {
|
||||
if (!sv_highchars->value) {
|
||||
*c &= 127;
|
||||
if (*c < 32 || *c > 127)
|
||||
continue;
|
||||
*p = *c;
|
||||
}
|
||||
}
|
||||
*p=0;
|
||||
|
||||
Info_SetValueForKey (svs.info, var->name, info, MAX_SERVERINFO_STRING);
|
||||
SV_SendServerInfoChange(var->name, var->string);
|
||||
// SV_BroadcastCommand ("fullserverinfo \"%s\"\n", svs.info);
|
||||
}
|
||||
Info_SetValueForKey (svs.info, var->name, info, MAX_SERVERINFO_STRING);
|
||||
SV_SendServerInfoChange(var->name, var->string);
|
||||
// SV_BroadcastCommand ("fullserverinfo \"%s\"\n", svs.info);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue