diff options
author | peter1138 <peter1138@openttd.org> | 2006-10-03 14:04:43 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-10-03 14:04:43 +0000 |
commit | 7b1053c35044e32ef959f3d8ef7a2e3ba06c9568 (patch) | |
tree | b7d456b88656c7f6ec46f3454789a02f43db8ebc /newgrf.c | |
parent | 7be5422d831d779e22e850645541a8aa2490f48e (diff) | |
download | openttd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |