-
-
Notifications
You must be signed in to change notification settings - Fork 844
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
[Bug]: No descriptive error when hostile takeover fails due to vehicle limit #12594
Comments
Can reproduce on b852a3f on Windows 10, 64-bit. This appears to be related to vehicle limits; increasing the maximum number of vehicles per company for each of the four vehicle types allows the hostile takeover to succeed. As far as I know, the full error message was/should be "Can't buy company... Too many vehicles in game" Caused by: Lines 2065 to 2066 in cc6e476
MayCompanyTakeOver is just a check that the combined vehicle counts don't exceed the currently set limits.
|
Thank you for looking, @James103 ! You're correct - if I increase the maximum vehicle count in the Settings dialog then the takeover works. Gotta love that comment, too: |
… due to vehicle limit
… due to vehicle limit
Version of OpenTTD
14.0
Expected result
You can execute a hostile takeover of the company
Actual result
A message saying "Can't buy company..." appears, with no additional information.
Steps to reproduce
Wutborough Market Transport, 1963-05-28.sav.zip
The text was updated successfully, but these errors were encountered: