Skip to content

Add: basic sanity check for 'articulated_part' callback - #445

Open
glx22 wants to merge 1 commit into
OpenTTD:masterfrom
glx22:articulated_part
Open

glx22 wants to merge 1 commit into
OpenTTD:masterfrom
glx22:articulated_part

Conversation

@glx22

@glx22 glx22 commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

When an item has an articulated_part callback, it's quite common to use this item as result of the callback.

It's also quite common to forget IDs for articulated_part results must be in 0 .. 16383 range.

Detect the possible mistake, and warn users about it.

@andythenorth

Copy link
Copy Markdown
Contributor

Confirmed working as intended.

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.

2 participants