Skip to content

Feature: Support for rail vehicle property 0x2E, curve_speed_mod - #222

Merged
FLHerne merged 1 commit into
OpenTTD:masterfrom
vituscze:curve-speed
Aug 15, 2021
Merged

FLHerne merged 1 commit into
OpenTTD:masterfrom
vituscze:curve-speed

Conversation

@vituscze

Copy link
Copy Markdown
Contributor

Also adds support for the related 0x36 callback.
@michicc

michicc commented Aug 15, 2021

Copy link
Copy Markdown
Member

Might be fine. Negative values are correctly translated and the scaling factor seems to fit, too.

@andythenorth andythenorth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Based on Michi's comment, approving. The only area of concern was 255 vs 256 for unit conversion (don't know which is correct).

@FLHerne FLHerne left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

From when we discussed this on IRC, I'm fairly sure 256 is correct. If it isn't, it's already wrong for several other properties with the same value range and would need fixing anyway.

@FLHerne
FLHerne merged commit 9ec112c into OpenTTD:master Aug 15, 2021
@vituscze
vituscze deleted the curve-speed branch August 26, 2021 02:01
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.

4 participants