Skip to content

Finance window becomes blank after 4096 years #17834

@James103

Description

@James103

Operating System

Windows 10, 64-bit

OpenRCT2 build

OpenRCT2, v0.4.1 (be518f4 and 9e1b24d) provided by GitHub

Describe the issue

When the in-game year exceeds 4096, the finance window appends blanks at the end instead of showing the info for the months after October, year 4096. This appears to be caused by some of the finance window code treating date.monthsElapsed as a signed integer instead of an unsigned integer.

Actual result

Area(s) with issue?

No response

Steps to reproduce

  1. Play any park or scenario until the in-game year 4096, or set that year via the cheats window.
  2. Play another year to reach year 4097.
  3. Check the finance window. Info for months after October, year 4096 does not show up; instead, the spaces remain blank like in the above image.

Attachments

Originally reported by @lordmarcel in https://discord.com/channels/601789725090643968/601794846658789377/1008763582185472031
(Discord server "Marcel's Hangout," channel "video-discussion," message dated August 15, 2022)
See also https://youtu.be/OmaRN8SVhfQ?t=425

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething went wrong.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions