summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-10-03 14:04:43 +0000
committerpeter1138 <peter1138@openttd.org>2006-10-03 14:04:43 +0000
commit7b1053c35044e32ef959f3d8ef7a2e3ba06c9568 (patch)
treeb7d456b88656c7f6ec46f3454789a02f43db8ebc /newgrf.c
parent7be5422d831d779e22e850645541a8aa2490f48e (diff)
downloadopenttd-7b1053c35044e32ef959f3d8ef7a2e3ba06c9568.tar.xz
(svn r6623) - Codechange: When adding a NewGRF string, check to see if it can replace an existing string. Also remove string length check on load which was a quickfix for some grfs.
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf.c b/newgrf.c
index 83b4a919b..99f70d37e 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -1960,7 +1960,7 @@ static void FeatureNewName(byte *buf, int len)
for (; id < endid && len > 0; id++) {
size_t ofs = strlen(name) + 1;
- if (ofs > 1 && ofs < 128) {
+ if (ofs < 128) {
DEBUG(grf, 8) ("FeatureNewName: %d <- %s", id, name);
switch (feature) {