summaryrefslogtreecommitdiff
path: root/src/gfxinit.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-09-03 07:51:07 +0000
committerrubidium <rubidium@openttd.org>2008-09-03 07:51:07 +0000
commita4cd12274ca31df58c63b5532bbbb22e155b6a76 (patch)
tree182c569b77749f62a11b272d146ebd2639ad0c24 /src/gfxinit.cpp
parentc620d5e5f066e62cf23197d16e40a07c41e2d9f8 (diff)
downloadopenttd-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.cpp2
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. */