From 4eaa7b1aaf260aa8248d698ab60a2e63a2faa1ab Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 20 Feb 2011 08:27:48 +0000 Subject: [PATCH] - fixed: The shareware -file check wasn't working anymore. SVN r3156 (trunk) --- src/d_main.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index f0a8a0c413..3cfd3081ce 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -1587,10 +1587,6 @@ static void GetCmdLineFiles(TArray &wadfiles) int i, argc; argc = Args->CheckParmList("-file", &args); - if ((gameinfo.flags & GI_SHAREWARE) && argc > 0) - { - I_FatalError ("You cannot -file with the shareware version. Register!"); - } for (i = 0; i < argc; ++i) { D_AddWildFile(wadfiles, args[i]); @@ -2044,7 +2040,7 @@ void D_DoomMain (void) GetCmdLineFiles(pwads); FString iwad = CheckGameInfo(pwads); - // The IWAD selection dialogue dpes not show in fullscreen so if the + // The IWAD selection dialogue does not show in fullscreen so if the // restart is initiated without a defined IWAD assume for now that it's not going to change. if (iwad.Len() == 0) iwad = lastIWAD; @@ -2055,6 +2051,11 @@ void D_DoomMain (void) gameinfo.ConfigName = iwad_info->Configname; lastIWAD = iwad; + if ((gameinfo.flags & GI_SHAREWARE) && pwads.Size() > 0) + { + I_FatalError ("You cannot -file with the shareware version. Register!"); + } + FBaseCVar::DisableCallbacks(); GameConfig->DoGameSetup (gameinfo.ConfigName);