1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 16:09:10 +00:00

Fix 02e770ff: allow estimating CloneVehicle if short on money (#8748)

CheckCompanyHasMoney() was also executed when not using DC_EXEC,
resulting in an error about shortage of money instead of the
estimation.
This mostly is a problem for AI players, as they will have no
way to know how much it would have cost.
This commit is contained in:
Patric Stout
2021-02-26 16:22:58 +01:00
committed by GitHub
parent d4583fa64c
commit 9a3dbf3122
2 changed files with 7 additions and 6 deletions

View File

@@ -21,6 +21,9 @@
* \li AICargo::GetName
* \li AIPriorityQueue
*
* Other changes:
* \li AIVehicle::CloneVehicle now correctly returns estimate when short on cash
*
* \b 1.10.0
*
* API additions: