You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set currency KRW/JPY and so on, which of its exchange rate in GBP is very high (eg. 1GBP = 1850KRW)
Send A LOT OF money to other company, such as 2147483648(UINT_MAX+1)
It overflows so that the game send lots of money
First line shows that the game send £2,147,483,648 exactly when I set in GBP.
Second and third lines show that it overflows when I set JPY/KRW.
All of three results come from the same value, 2147483648
Note that this overflow issue also occurs when I set in GBP and send A LOT OF money, such as 21474836480. (Game send £0)
The text was updated successfully, but these errors were encountered:
andythenorth
changed the title
Overflow issue when sending money in multiplay
Overflow issue when sending money in multiplayer
Oct 22, 2019
JGRennison
added a commit
to JGRennison/OpenTTD-patches
that referenced
this issue
Nov 16, 2019
Version of OpenTTD
1.9.3 and since multiplay is supported
Expected result
Send exact amount of money
Actual result
Game send a lot of money
Steps to reproduce
2147483648(UINT_MAX+1)
First line shows that the game send
£2,147,483,648
exactly when I set in GBP.Second and third lines show that it overflows when I set JPY/KRW.
All of three results come from the same value,
2147483648
Note that this overflow issue also occurs when I set in GBP and send A LOT OF money, such as
21474836480
. (Game send £0)The text was updated successfully, but these errors were encountered: