Move GfxSkipHiresFNT to CArg

This commit is contained in:
Kp 2015-12-24 04:01:26 +00:00
parent 23bb4c5826
commit bb3a386b47
3 changed files with 3 additions and 3 deletions

View file

@ -72,6 +72,7 @@ struct CArg : prohibit_void_ptr<CArg>
bool SysNoHogDir;
#endif
bool SysShowCmdHelp;
bool GfxSkipHiresFNT;
bool SndNoSound;
#ifdef USE_SDLMIXER
bool SndDisableSdlMixer;
@ -115,7 +116,6 @@ struct Arg : prohibit_void_ptr<Arg>
bool SysNoTitles;
bool SysAutoDemo;
bool SndNoMusic;
bool GfxSkipHiresFNT;
#ifdef DXX_BUILD_DESCENT_I
bool EdiNoBm;
#endif

View file

@ -174,7 +174,7 @@ void gamefont_init()
for (int i=0;i<MAX_FONTS;i++){
Gamefonts[i]=NULL;
if (!GameArg.GfxSkipHiresFNT)
if (!CGameArg.GfxSkipHiresFNT)
addfontconf(i,640,480,Gamefont_filenames_h[i]); // ZICO - addition to use D2 fonts if available
#if defined(DXX_BUILD_DESCENT_I)
if (MacHog && (i != 0))

View file

@ -274,7 +274,7 @@ static void ReadCmdArgs(Inilist &ini, Arglist &Args)
// Graphics Options
else if (!d_stricmp(p, "-lowresfont"))
GameArg.GfxSkipHiresFNT = 1;
CGameArg.GfxSkipHiresFNT = true;
#if defined(DXX_BUILD_DESCENT_II)
else if (!d_stricmp(p, "-lowresgraphics"))
GameArg.GfxSkipHiresGFX = 1;