(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.

This commit is contained in:
2006-10-03 14:04:43 +00:00
parent 7be5422d83
commit 7b1053c350
2 changed files with 16 additions and 4 deletions

View File

@@ -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) {