mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r17150) -Codechange: when MapGRFStringID() fails to remap, return STR_EMPTY instead of 'random' string
This commit is contained in:
parent
52f9b8ffbd
commit
616370eae3
@ -320,7 +320,9 @@ StringID MapGRFStringID(uint32 grfid, StringID str)
|
|||||||
|
|
||||||
if (str == STR_NULL) return STR_EMPTY;
|
if (str == STR_NULL) return STR_EMPTY;
|
||||||
|
|
||||||
return str;
|
DEBUG(grf, 0, "Unknown StringID 0x%04X remapped to STR_EMPTY. Please open a Feature Request if you need it", str);
|
||||||
|
|
||||||
|
return STR_EMPTY;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint8 MapDOSColour(uint8 colour)
|
static inline uint8 MapDOSColour(uint8 colour)
|
||||||
|
Loading…
Reference in New Issue
Block a user