OpenTTD / nml

NewGRF Meta Language
GNU General Public License v2.0
42 stars 36 forks source link

Add: Support for station variable 6B #320

Closed glx22 closed 2 months ago

glx22 commented 7 months ago

https://github.com/OpenTTD/OpenTTD/pull/10953 added station variable 6B to get extended station id of nearby tiles.

Since roadstop feature exists only in OpenTTD 14+, I just replaced var68 with var6B.

But for stations an extra compatibility layer is required. OpenTTD 14 is out now, so just replace var68 with var6B.

WenSimEHRP commented 3 months ago

For station grfs that has station tiles that relies on ids this PR would be useful. Examples are https://github.com/WenSimEHRP/jppluswins and https://github.com/openttd-china-set/china-set-stations

PeterN commented 2 months ago

Is the duplicate key warning an issue?

glx22 commented 2 months ago

I failed when solving a conflict.