(svn r20252) -Codechange: deduplicate logic for setting a suitable (initial) palette for NewGRFs

This commit is contained in:
rubidium
2010-07-31 09:36:09 +00:00
parent 75c4a2d2fb
commit f7794e313f
3 changed files with 16 additions and 4 deletions

View File

@@ -108,6 +108,8 @@ struct GRFConfig : ZeroedMemoryAllocator {
const char *GetName() const;
const char *GetDescription() const;
void SetSuitablePalette();
};
extern GRFConfig *_all_grfs; ///< First item in list of all scanned NewGRFs