diff options
author | rubidium <rubidium@openttd.org> | 2008-08-23 20:16:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-08-23 20:16:54 +0000 |
commit | 200f405706daf97f9e0e15806ce04a021fe7649a (patch) | |
tree | 5286eef504f7700e89f70f223dd516dc542ba066 /src/newgrf.cpp | |
parent | 5de17da66e55661250aba173817ed56d0e46cbee (diff) | |
download | openttd-200f405706daf97f9e0e15806ce04a021fe7649a.tar.xz |
(svn r14146) -Codechange: allow palette override in both ways and remove some unneeded '(x == 0) ? 0 : 1' constructs.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 726ab01d8..44892df0b 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -323,7 +323,7 @@ StringID MapGRFStringID(uint32 grfid, StringID str) static uint8 MapDOSColour(uint8 colour) { - if (_use_dos_palette) return colour; + if (_use_palette == PAL_DOS) return colour; if (colour < 10) { static uint8 dos_to_win_colour_map[] = { 0, 215, 216, 136, 88, 106, 32, 33, 40, 245 }; @@ -3634,7 +3634,7 @@ bool GetGlobalVariable(byte param, uint32 *value) } case 0x0D: // TTD Version, 00=DOS, 01=Windows - *value = !_use_dos_palette; + *value = _use_palette; return true; case 0x0E: // Y-offset for train sprites |