summaryrefslogtreecommitdiff
path: root/src/sound/win32_s.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-01-07 08:40:27 +0100
committerPatric Stout <github@truebrain.nl>2021-01-08 11:17:08 +0100
commitd9ec8053d7e545fd5b1b06760a592c1c0c07d103 (patch)
tree0c53cde44be568b3ff36b2a885222bc52c51567a /src/sound/win32_s.h
parent9b800a96ed32720ff60b74e498a0e0a6351004f9 (diff)
downloadopenttd-d9ec8053d7e545fd5b1b06760a592c1c0c07d103.tar.xz
Fix #8050: ending-year of 5000000 allows you to get to year 5000001 and beyond
MAX_YEAR is set to 5000000, but having an ending-year set to the same meant you could bypass this, and play till the uint32 wrapped. The game can either show highscore or wrap year, not both. When you would do both, every year you get the highscore dialog. By changing the maximum value of ending-year to 4999999 we prevent this issue.
Diffstat (limited to 'src/sound/win32_s.h')
0 files changed, 0 insertions, 0 deletions