mirror of https://github.com/OpenTTD/OpenTTD
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.pull/10765/head
parent
d6f35a9fd6
commit
bc7dfd7b46
|
@ -2124,6 +2124,14 @@ static ChangeInfoResult StationChangeInfo(uint stid, int numinfo, int prop, Byte
|
||||||
buf->ReadWord();
|
buf->ReadWord();
|
||||||
break;
|
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:
|
default:
|
||||||
ret = CIR_UNKNOWN;
|
ret = CIR_UNKNOWN;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue