summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-08-10 22:36:15 +0000
committersmatz <smatz@openttd.org>2009-08-10 22:36:15 +0000
commit616370eae34993be4961e690f8c008085a5b33b9 (patch)
tree3fb6d3084c1509084f449fb43e193431ea91c8d5 /src
parent52f9b8ffbd5fe9222da34e968d69876982b9a810 (diff)
downloadopenttd-616370eae34993be4961e690f8c008085a5b33b9.tar.xz
(svn r17150) -Codechange: when MapGRFStringID() fails to remap, return STR_EMPTY instead of 'random' string
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index eca778dca..8c8b6e329 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -320,7 +320,9 @@ StringID MapGRFStringID(uint32 grfid, StringID str)
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)