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

Division by zero for road vehicles with zero mass in realistic acceleration model #3751

Closed
DorpsGek opened this issue Apr 10, 2010 · 1 comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

terom opened the ticket and wrote:

Running a road vehicle with a 0t mass will crash the game with an Arithmetic exception if using the Realistic Acceleration model.

Steps to reproduce:

  1. Load George's Long Vehicles v4 GRF (4D656F17):
    http://grfcrawler.tt-forums.net/details.php?do=details&id=83
  2. Start a new game in the year 1930
  3. Enable the Realistic Acceleration model
  4. Build a new Ford "Model T" road vehicle
  5. Start it

A savegame from r19596 (git) with steps 1-4 already done is attached, along with a screenshot from before the crash, the crash.log, and gdb backtrace showing the `mass` local variable being zero.

Original report: http://www.tt-forums.net/viewtopic.php?p=869455# p869455

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/3751
@DorpsGek
Copy link
Member Author

Terkhen closed the ticket.

Reason for closing: Fixed

In r19599.


This comment was imported from FlySpray: https://bugs.openttd.org/task/3751

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) Vehicles labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant