Skip to content

[Bug]: Days set in time table appear one day shorter than typed #16

@KeithWM

Description

@KeithWM

Version of OpenTTD

OpenTTD 13.4-slowpace-1.3.1 (on MacOS Monterrey 12.7.6)

Expected result

When setting a timetable entry to a particular value, I expect the result to be stored as that value.

Actual result

Each value is stored as 1 less than I set.

Steps to reproduce

  1. Start game with a game year lasting one week
  2. Create a vehicle with orders
  3. Set the time for a stop or travel to 5 minutes
  4. Observe that a "4" appears in the timetable.

FYI: If I set it to 1, I see a 0 appear, but 34 ticks if I switch to showing ticks. If I increase this to 35 ticks, and then switch back to showing the time table in minutes, it does show 1. It might just be a rounding or integer division issue. If I set it to 2 minutes, I see a 1 appear, but 69 ticks. Again, changing it to 70 does update the minutes to 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions