Skip to content

Conversation

@PeterN
Copy link
Member

@PeterN PeterN commented Sep 1, 2025

Implement support for station and road stop height and blocked pillar flag lists.

heights for station prop 0x20, roadstop prop 0x13.
blocked_pillars for station prop 0x21, roadstop prop 0x14.

This processes lists as provided by the author and makes no assumptions about what different tile layouts might represent.


def station_tile_list(value, prop_num, description):
if not isinstance(value, Array) or len(value.values) % 2 != 0:
raise generic.ScriptError(description + " list must be an array of even length", value.pos)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally speaking i'd say use f-strings instead of concatenation.

Originally posted by @LordAro in #385 (comment)

@Rito13
Copy link
Contributor

Rito13 commented Nov 22, 2025

I've been using heights flag from this PR for last two months and haven't encountered any issues.

@PeterN PeterN merged commit db32983 into OpenTTD:master Nov 30, 2025
21 checks passed
@PeterN PeterN deleted the station-bridges branch November 30, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants