mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r20234) -Fix [FS#3988]: refit costs from refit orders are subtracted from the vehicle yearly income
This commit is contained in:
parent
fc6f336fee
commit
dd7800ea18
@ -1131,8 +1131,11 @@ void VehicleEnterDepot(Vehicle *v)
|
|||||||
SetDParam(0, v->index);
|
SetDParam(0, v->index);
|
||||||
AddVehicleNewsItem(STR_NEWS_ORDER_REFIT_FAILED, NS_ADVICE, v->index);
|
AddVehicleNewsItem(STR_NEWS_ORDER_REFIT_FAILED, NS_ADVICE, v->index);
|
||||||
}
|
}
|
||||||
} else if (v->owner == _local_company && cost.GetCost() != 0) {
|
} else if (cost.GetCost() != 0) {
|
||||||
ShowCostOrIncomeAnimation(v->x_pos, v->y_pos, v->z_pos, cost.GetCost());
|
v->profit_this_year -= cost.GetCost() << 8;
|
||||||
|
if (v->owner == _local_company) {
|
||||||
|
ShowCostOrIncomeAnimation(v->x_pos, v->y_pos, v->z_pos, cost.GetCost());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user