qboolean quotes;
char *comment;
- // LordHavoc: making sure the tokenizebuffer doesn't get filled up by repeated crashes
+ // LadyHavoc: making sure the tokenizebuffer doesn't get filled up by repeated crashes
cmd_tokenizebufferpos = 0;
while (cmd_text.cursize)
{
char *f;
size_t filenameLen = strlen(filename);
- qboolean isdefaultcfg = filenameLen >= 11 && !strcmp(filename + filenameLen - 11, "default.cfg");
+ qboolean isdefaultcfg =
+ !strcmp(filename, "default.cfg") ||
+ (filenameLen >= 12 && !strcmp(filename + filenameLen - 12, "/default.cfg"));
if (!strcmp(filename, "config.cfg"))
{
cvar_t *cvar;
long argno;
char *endptr;
- char vabuf[1024];
+ static char vabuf[1024]; // cmd_mutex
if(is_multiple)
*is_multiple = false;
return buf;
}
-// written by LordHavoc
+// written by LadyHavoc
void Cmd_CompleteCommandPrint (const char *partial)
{
cmd_function_t *cmd;
return NULL;
}
-// written by LordHavoc
+// written by LadyHavoc
void Cmd_CompleteAliasPrint (const char *partial)
{
cmdalias_t *alias;
if (!cls.netcon)
return;
- // LordHavoc: thanks to Fuh for bringing the pure evil of SZ_Print to my
+ // LadyHavoc: thanks to Fuh for bringing the pure evil of SZ_Print to my
// attention, it has been eradicated from here, its only (former) use in
// all of darkplaces.
if (cls.protocol == PROTOCOL_QUAKEWORLD)