Skip to content

Commit

Permalink
Fixed: The abbreviated command line option -d (the short form of -def…
Browse files Browse the repository at this point in the history
…s) for loading DED files not working.
  • Loading branch information
danij committed Jul 24, 2009
1 parent b9951c6 commit 2b715bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions doomsday/engine/portable/src/dd_main.c
Expand Up @@ -742,10 +742,8 @@ static void HandleArgs(int state)
{
for(p = 0; p < Argc(); p++)
{
if((order == 1 &&
(stricmp(Argv(p), "-f") && stricmp(Argv(p), "-file"))) ||
(order == 0 &&
stricmp(Argv(p), "-iwad")))
if((order == 1 && ArgRecognize("-file", Argv(p))) ||
(order == 0 && ArgRecognize("-iwad", Argv(p))))
continue;

while(++p != Argc() && !ArgIsOption(p))
Expand Down
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/def_main.c
Expand Up @@ -162,7 +162,7 @@ void Def_Init(void)
{
const char* arg = Argv(p);

if(stricmp(arg, "-def") && stricmp(arg, "-defs"))
if(ArgRecognize("-def", arg) && ArgRecognize("-defs", arg))
continue;

while(c < MAX_READ && ++p != Argc() && !ArgIsOption(p))
Expand Down

0 comments on commit 2b715bb

Please sign in to comment.