mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r10456) -Codechange: Enable loading newgrf strings for Industries
This commit is contained in:
parent
ef5c7a74e5
commit
8df65af2d3
@ -2723,6 +2723,11 @@ static void FeatureNewName(byte *buf, int len)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GSF_INDUSTRIES: {
|
||||||
|
AddGRFString(_cur_grffile->grfid, id, lang, new_scheme, name, STR_UNDEFINED);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case GSF_TOWNHOUSE:
|
case GSF_TOWNHOUSE:
|
||||||
default:
|
default:
|
||||||
switch (GB(id, 8, 8)) {
|
switch (GB(id, 8, 8)) {
|
||||||
@ -2773,10 +2778,6 @@ static void FeatureNewName(byte *buf, int len)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GSF_INDUSTRIES :
|
|
||||||
case 0x48 : // for generic strings
|
|
||||||
AddGRFString(_cur_spriteid, id, lang, name);
|
|
||||||
break;
|
|
||||||
default :
|
default :
|
||||||
grfmsg(7, "FeatureNewName: Unsupported feature (0x%02X)", feature);
|
grfmsg(7, "FeatureNewName: Unsupported feature (0x%02X)", feature);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user