- removed unused code.

This commit is contained in:
Christoph Oelckers 2019-10-07 22:11:28 +02:00
parent dfaa162bb2
commit 16dbb3526a

View file

@ -115,11 +115,6 @@ void G_ShowDebugHelp(void)
"-z#/-condebug\tEnable line-by-line CON compile debugging at level #\n" "-z#/-condebug\tEnable line-by-line CON compile debugging at level #\n"
"-conversion YYYYMMDD\tSelects CON script version for compatibility with older mods\n" "-conversion YYYYMMDD\tSelects CON script version for compatibility with older mods\n"
"-rotatesprite-no-widescreen\tStretch screen drawing from scripts to fullscreen\n" "-rotatesprite-no-widescreen\tStretch screen drawing from scripts to fullscreen\n"
#ifdef LUNATIC
"-Lopts=<opt1>,<opt2>,...\n"
" Pass options to Lunatic, valid ones are:\n"
" diag, nojit, traces, dump, strict\n"
#endif
; ;
#ifdef WM_MSGBOX_WINDOW #ifdef WM_MSGBOX_WINDOW
Bsnprintf(tempbuf, sizeof(tempbuf), HEAD2 " %s", s_buildRev); Bsnprintf(tempbuf, sizeof(tempbuf), HEAD2 " %s", s_buildRev);
@ -165,10 +160,6 @@ void G_CheckCommandLine(int32_t argc, char const * const * argv)
int16_t i = 1, j; int16_t i = 1, j;
const char *c, *k; const char *c, *k;
#ifdef LUNATIC
g_argv = argv;
g_elModules = (const char **) Xcalloc(argc+1, sizeof(char *));
#endif
ud.fta_on = 1; ud.fta_on = 1;
ud.god = 0; ud.god = 0;
ud.m_respawn_items = 0; ud.m_respawn_items = 0;
@ -203,9 +194,6 @@ void G_CheckCommandLine(int32_t argc, char const * const * argv)
if (argc > 1) if (argc > 1)
{ {
#ifdef LUNATIC
int32_t numlmods = 0;
#endif
initprintf("Application parameters: "); initprintf("Application parameters: ");
while (i < argc) while (i < argc)
initprintf("%s ", argv[i++]); initprintf("%s ", argv[i++]);
@ -219,11 +207,7 @@ void G_CheckCommandLine(int32_t argc, char const * const * argv)
c = oc; c = oc;
if ((*c == '-') if (*c == '-')
#ifdef _WIN32
|| (*c == '/')
#endif
)
{ {
shortopt = 0; shortopt = 0;
@ -608,10 +592,6 @@ void G_CheckCommandLine(int32_t argc, char const * const * argv)
G_AddDemo(c); G_AddDemo(c);
break; break;
} }
#ifdef LUNATIC
case 'f':
break;
#endif
case 'g': case 'g':
c++; c++;
if (*c) if (*c)
@ -771,10 +751,6 @@ void G_CheckCommandLine(int32_t argc, char const * const * argv)
case 'w': case 'w':
ud.coords = 1; ud.coords = 1;
break; break;
#ifdef LUNATIC
case 'W':
break;
#endif
case 'x': case 'x':
c++; c++;
if (*c) if (*c)
@ -829,13 +805,6 @@ void G_CheckCommandLine(int32_t argc, char const * const * argv)
initprintf("Using RTS file \"%s\".\n", g_rtsNamePtr); initprintf("Using RTS file \"%s\".\n", g_rtsNamePtr);
continue; continue;
} }
#ifdef LUNATIC
if (!Bstrcmp(k, ".lua")) // NOTE: case sensitive!
{
g_elModules[numlmods++] = argv[i++];
continue;
}
#endif
} }
} }