Skip to content

Change: Display rail and road type speed limit text in yellow.#15076

Merged
LordAro merged 1 commit intoOpenTTD:masterfrom
PeterN:railtype-roadtype-speed-colour
Feb 18, 2026
Merged

Change: Display rail and road type speed limit text in yellow.#15076
LordAro merged 1 commit intoOpenTTD:masterfrom
PeterN:railtype-roadtype-speed-colour

Conversation

@PeterN
Copy link
Member

@PeterN PeterN commented Jan 10, 2026

Motivation / Problem

Railtype and roadtype NewGRFs used to be able to exploit string colour bleeding to influence the colour of the speed limit in the string.

Mostly they set it to yellow. Since string colour bleeding is no longer possible, this trick no longer works.

Description

Make the game display all rail and road type speed limit text in yellow, to continue the "tradition"...

Limitations

Not really necessary, but I had a stash lying around...

Checklist for review

Some things are not automated, and forgotten often. This list is a reminder for the reviewers.

  • The bug fix is important enough to be backported? (label: 'backport requested')
  • This PR touches english.txt or translations? Check the guidelines
  • This PR affects the GS/AI API? (label 'needs review: Script API')
    • ai_changelog.hpp, game_changelog.hpp need updating.
    • The compatibility wrappers (compat_*.nut) need updating.
  • This PR affects the NewGRF API? (label 'needs review: NewGRF')

This was a "convention" used by NewGRFs which exploited string colour bleeding.
@PeterN PeterN marked this pull request as ready for review January 11, 2026 10:02
@LordAro LordAro merged commit 5011060 into OpenTTD:master Feb 18, 2026
14 checks passed
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