Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: add setting to hide news about competitors vehicle crash #9653



Copy link

@grenoult grenoult commented Oct 24, 2021

Motivation / Problem

During a game of OpenTTD with many competitors, we can receive a lot of news regarding competitors vehicles involved in accidents. This is especially true when vehicles have low reliability and are rarely replaced:

  • road vehicles breaking down on a rail crossing then being crashed by a train,
  • airplanes failing to land on an airport and crashing.

This PR addresses the issue of receiving too many news regarding competitors vehicle crash where it doesn't bring any value or meaning to the main player. As a OpenTTD player, I want to know when my vehicles are involved in a crash but I may choose to not receive notification if competitors vehicles are destroyed.


A new setting has been added "Accidents of competitor's vehicles". It's "Full" by default. When turned off, no news will be generated when a competitor vehicle is involved in a crash. When it's "Summary", only the short version will be displayed at the bottom of the screen.
A crash, in the context of this PR, is when a road vehicle is hit by a train or when an airplane misses landing at an airport.

  • Full: A news item is generated when setting is Full (by default) and a competitor vehicle is crashed (in this example, a plane crash):

  • Summary: Short news are generated when setting is "Summary" and a competitor vehicle (red) is crashed by a train:

  • Off: no news are generated when a competitor vehicle is crashed when settings is "Off"


  • other crashes, such as UFOs and similar events are ignored as part of this PR. This has been left out because it's rare enough to cause a disruption to the player. That being said, one could argue we could update this in this PR and I could update it (probably in another PR) if requested.

Checklist for review

  • This PR adds a new translation in english.txt file. From the documentation, nothing else is required at this stage.

Add a new News Setting (Full, Summary, Off) so that player can decide whether to be informed or not when a competitor's vehicle is involved (aircraft, road vehicle) in a crash.
@grenoult grenoult marked this pull request as ready for review Oct 24, 2021
src/aircraft_cmd.cpp Outdated Show resolved Hide resolved
LordAro approved these changes Nov 6, 2021
@michicc michicc merged commit c38af72 into OpenTTD:master Nov 7, 2021
16 checks passed
@TrueBrain TrueBrain changed the title Update: add setting to hide news about competitors vehicle crash Feature: add setting to hide news about competitors vehicle crash Nov 7, 2021

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

4 participants