Move DbgNoCompressPigBitmap to CArg

This commit is contained in:
Kp 2015-12-24 04:01:28 +00:00
parent 96b9f606d7
commit a91ef00a86
3 changed files with 5 additions and 5 deletions

View file

@ -108,6 +108,7 @@ struct CArg : prohibit_void_ptr<CArg>
#endif
bool DbgNoRun;
bool DbgNoDoubleBuffer;
bool DbgNoCompressPigBitmap;
bool DbgRenderStats;
uint8_t DbgBpp;
int8_t DbgVerbose;
@ -148,7 +149,6 @@ struct Arg : prohibit_void_ptr<Arg>
#endif
std::string DbgAltTex;
std::string DbgTexMap;
bool DbgNoCompressPigBitmap;
};
extern struct Arg GameArg;

View file

@ -281,7 +281,7 @@ bitmap_index piggy_register_bitmap( grs_bitmap * bmp, const char * name, int in_
swap_0_255( bmp );
#endif
#endif
if (GameArg.DbgNoCompressPigBitmap)
if (CGameArg.DbgNoCompressPigBitmap)
gr_bitmap_rle_compress(*bmp);
}
#if defined(DXX_BUILD_DESCENT_II)
@ -859,7 +859,7 @@ void piggy_new_pigfile(char *pigname)
if ( GameArg.EdiMacData )
swap_0_255( bm[fnum].get() );
if (GameArg.DbgNoCompressPigBitmap)
if (CGameArg.DbgNoCompressPigBitmap)
gr_bitmap_rle_compress(*bm[fnum].get());
if (bm[fnum]->bm_flags & BM_FLAG_RLE)
@ -905,7 +905,7 @@ void piggy_new_pigfile(char *pigname)
if ( GameArg.EdiMacData )
swap_0_255( &n );
if (GameArg.DbgNoCompressPigBitmap)
if (CGameArg.DbgNoCompressPigBitmap)
gr_bitmap_rle_compress(n);
if (n.bm_flags & BM_FLAG_RLE)

View file

@ -364,7 +364,7 @@ static void ReadCmdArgs(Inilist &ini, Arglist &Args)
else if (!d_stricmp(p, "-nodoublebuffer"))
CGameArg.DbgNoDoubleBuffer = true;
else if (!d_stricmp(p, "-bigpig"))
GameArg.DbgNoCompressPigBitmap = 1;
CGameArg.DbgNoCompressPigBitmap = true;
else if (!d_stricmp(p, "-16bpp"))
CGameArg.DbgBpp = 16;