mirror of https://github.com/OpenTTD/OpenTTD
(svn r1919) -Fix: Minimum profit of vehicles was calculated wrong for Performance Rating
parent
6519d3bc97
commit
862faa16c0
|
@ -123,7 +123,7 @@ int UpdateCompanyRatingAndValue(Player *p, bool update)
|
||||||
/* Count vehicles */
|
/* Count vehicles */
|
||||||
{
|
{
|
||||||
Vehicle *v;
|
Vehicle *v;
|
||||||
int32 min_profit = 0;
|
int32 min_profit = score_info[SCORE_MIN_PROFIT].needed;
|
||||||
uint num = 0;
|
uint num = 0;
|
||||||
|
|
||||||
FOR_ALL_VEHICLES(v) {
|
FOR_ALL_VEHICLES(v) {
|
||||||
|
|
Loading…
Reference in New Issue