Fatigue is the mortal enemy of working code and the best friend of oversights, apparently :p


git-svn-id: https://svn.eduke32.com/eduke32@844 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2008-07-07 22:03:11 +00:00
parent 01449fc547
commit 5907674844
2 changed files with 31 additions and 27 deletions

View file

@ -6760,16 +6760,6 @@ static void checkcommandline(int argc, const char **argv)
#endif
}
k = Bstrchr(c,'.');
if (k)
{
if (!Bstrcasecmp(k,".grp") || !Bstrcasecmp(k,".zip"))
{
addgroup(argv[i++]);
continue;
}
}
if ((*c == '/') || (*c == '-'))
{
c++;
@ -6798,6 +6788,18 @@ static void checkcommandline(int argc, const char **argv)
break;
}
}
else
{
k = Bstrchr(c,'.');
if (k)
{
if (!Bstrcasecmp(k,".grp") || !Bstrcasecmp(k,".zip"))
{
addgroup(argv[i++]);
continue;
}
}
}
i++;
}
}

View file

@ -9031,23 +9031,6 @@ static void checkcommandline(int argc, const char **argv)
#endif
}
k = Bstrchr(c,'.');
if (k)
{
if (!Bstrcasecmp(k,".grp") || !Bstrcasecmp(k,".zip"))
{
addgroup(argv[i++]);
continue;
}
if (!Bstrcasecmp(k,".con"))
{
confilename = (char *)argv[i++];
userconfiles = 1;
initprintf("Using CON file '%s'.\n",confilename);
continue;
}
}
if (firstnet > 0)
{
if (*c == '-' || *c == '/')
@ -9317,6 +9300,25 @@ static void checkcommandline(int argc, const char **argv)
break;
}
}
else
{
k = Bstrchr(c,'.');
if (k)
{
if (!Bstrcasecmp(k,".grp") || !Bstrcasecmp(k,".zip"))
{
addgroup(argv[i++]);
continue;
}
if (!Bstrcasecmp(k,".con"))
{
confilename = (char *)argv[i++];
userconfiles = 1;
initprintf("Using CON file '%s'.\n",confilename);
continue;
}
}
}
i++;
}
}