(svn r20253) -Codechange: change GRFConfig::windows_paletted into a bitmask/bitset

This commit is contained in:
rubidium
2010-07-31 09:40:43 +00:00
parent f7794e313f
commit e469a94a2d
6 changed files with 28 additions and 17 deletions

View File

@@ -180,7 +180,7 @@ static void LoadSpriteTables()
GRFConfig *top = _grfconfig;
GRFConfig *master = new GRFConfig(used_set->files[GFT_EXTRA].filename);
FillGRFDetails(master, false);
master->windows_paletted = (used_set->palette == PAL_WINDOWS);
master->palette = (used_set->palette == PAL_WINDOWS) ? GRFP_USE_WINDOWS : GRFP_USE_DOS;
ClrBit(master->flags, GCF_INIT_ONLY);
master->next = top;
_grfconfig = master;