diff options
author | rubidium <rubidium@openttd.org> | 2008-09-03 07:51:07 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-09-03 07:51:07 +0000 |
commit | a4cd12274ca31df58c63b5532bbbb22e155b6a76 (patch) | |
tree | 182c569b77749f62a11b272d146ebd2639ad0c24 /src/gfxinit.cpp | |
parent | c620d5e5f066e62cf23197d16e40a07c41e2d9f8 (diff) | |
download | openttd-a4cd12274ca31df58c63b5532bbbb22e155b6a76.tar.xz |
(svn r14233) -Feature/Fix [FS#2172]: save the palette of the loaded NewGRFs in the savegame, so joining with a server using Windows palette will make a client with the DOS palette do palette conversion and (thus) not cause a desync due to the different palettes disabling different NewGRFs.
Diffstat (limited to 'src/gfxinit.cpp')
-rw-r--r-- | src/gfxinit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfxinit.cpp b/src/gfxinit.cpp index 86f0fa8ee..66bd2709f 100644 --- a/src/gfxinit.cpp +++ b/src/gfxinit.cpp @@ -299,11 +299,11 @@ static void LoadSpriteTables() GRFConfig *master = CallocT<GRFConfig>(1); master->filename = strdup(_used_graphics_set->files[GFT_EXTRA].filename); FillGRFDetails(master, false); + master->windows_paletted = (_used_graphics_set->palette == PAL_WINDOWS); ClrBit(master->flags, GCF_INIT_ONLY); master->next = top; _grfconfig = master; - _palette_remap_grf[i] = (_use_palette != _used_graphics_set->palette); LoadNewGRF(SPR_NEWGRFS_BASE, i); /* Free and remove the top element. */ |