(svn r14229) -Feature: allow overriding the palette of the base GRFs. This way you can play with NewGRFs made for the Windows palette with the DOS palettes base GRFs (and vice versa). Note that for this to work correctly ALL NewGRFs must use the same palette; mix and match is not yet supported.

This commit is contained in:
rubidium
2008-09-02 18:45:15 +00:00
parent c0cdfea97d
commit fc216aeeb8
6 changed files with 143 additions and 9 deletions

View File

@@ -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