diff options
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index a701b2f37..dea96f88c 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -3652,7 +3652,11 @@ bool GetGlobalVariable(byte param, uint32 *value) } case 0x0D: // TTD Version, 00=DOS, 01=Windows - *value = _use_palette; + if (_palette_remap_grf[_file_index]) { + *value = !_use_palette; + } else { + *value = _use_palette; + } return true; case 0x0E: // Y-offset for train sprites |