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

cannot give money if I have too much #1174

Closed
DorpsGek opened this issue Aug 31, 2007 · 1 comment
Closed

cannot give money if I have too much #1174

DorpsGek opened this issue Aug 31, 2007 · 1 comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

SmatZ opened the ticket and wrote:

r11015

If a company has too much money (over 1<<32 ?), it cannot give money to other companies.

problem is likely there:
main_gui.cpp : 93
Money money = min(p->player_money - p->current_loan, atoi(str) / _currency->rate);

the first parameter is downgraded to int32 in the min() function (it is just my guess)

I am sorry I am not attaching any patch, I don't know the most nice and general way to fix that.

Attached savegame - start a server, join second client and try to give him money.

Attachments

Reported version: trunk
Operating system: All


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

Rubidium closed the ticket.

Reason for closing: Fixed

In r11020.


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

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 6, 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