mirror of https://github.com/OpenTTD/OpenTTD.git
Add: Station property 1C/1D to set name/classname.
These are an alternative to the original "generic" C4xx/C5xx method, which can only assign strings to IDs up to 256.
This commit is contained in:
parent
d6f35a9fd6
commit
bc7dfd7b46
|
@ -2124,6 +2124,14 @@ static ChangeInfoResult StationChangeInfo(uint stid, int numinfo, int prop, Byte
|
|||
buf->ReadWord();
|
||||
break;
|
||||
|
||||
case 0x1C: // Station Name
|
||||
AddStringForMapping(buf->ReadWord(), &statspec->name);
|
||||
break;
|
||||
|
||||
case 0x1D: // Station Class name
|
||||
AddStringForMapping(buf->ReadWord(), &StationClass::Get(statspec->cls_id)->name);
|
||||
break;
|
||||
|
||||
default:
|
||||
ret = CIR_UNKNOWN;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue