compat.h: Add str*equal () convenience macros

cl_main.c: Clean up version string a little
cmd.c: Add setrom parsing to first init phase, clean up includes a little
cvar.c: setrom command now uses set's semantics. Cvar_Set, Cvar_Set_f,
Cvar_Setrom_f now do a Con_DPrintf to report attempts to set CVAR_ROM
cvars.
sv_main.c: Clean up version string a little
vid.c: -winsize, -width, and -height no longer use Cvar_SetROM. The code
looks a little uglier, but it's more correct.
This commit is contained in:
Jeff Teunissen 2000-11-04 07:42:43 +00:00
parent c7790511ec
commit ba11d00aba
6 changed files with 92 additions and 61 deletions

View file

@ -27,10 +27,18 @@
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
# include "config.h"
#endif
#include <string.h>
#include <ctype.h>
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#include "sys.h"
#include "cmd.h"
#include "compat.h"
#include "cvar.h"
#include "sizebuf.h"
#include "console.h"
@ -39,12 +47,6 @@
#include "commdef.h"
#include "zone.h"
#include <string.h>
#include <ctype.h>
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
void Cmd_ForwardToServer (void);
#define MAX_ALIAS_NAME 32
@ -258,10 +260,14 @@ Cbuf_Execute_Sets (void)
while (cmd_text.cursize) {
extract_line (line);
// execute the command line
if (strncmp(line,"set",3)==0
&& isspace((int) line[3]))
//Con_DPrintf("+%s\n",line),
if (strnequal(line, "set", 3) && isspace((int) line[3])) {
//Con_DPrintf ("+%s\n",line);
Cmd_ExecuteString (line);
}
if (strnequal(line, "setrom", 6) && isspace((int) line[6])) {
//Con_DPrintf ("+%s\n",line);
Cmd_ExecuteString (line);
}
}
}