forked from mirror/OpenTTD
(svn r16) Fix: Train refit cost based on _price.ship_base
This commit is contained in:
@@ -1015,7 +1015,7 @@ int32 CmdRefitRailVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
|||||||
|
|
||||||
do {
|
do {
|
||||||
if (!(_rail_vehicle_info[v->engine_type].flags & RVI_WAGON) && (byte)p2 != v->cargo_type && v->cargo_cap != 0) {
|
if (!(_rail_vehicle_info[v->engine_type].flags & RVI_WAGON) && (byte)p2 != v->cargo_type && v->cargo_cap != 0) {
|
||||||
cost += (_price.ship_base >> 7);
|
cost += (_price.build_railvehicle >> 8);
|
||||||
num += v->cargo_cap;
|
num += v->cargo_cap;
|
||||||
if (flags & DC_EXEC) {
|
if (flags & DC_EXEC) {
|
||||||
v->cargo_count = 0;
|
v->cargo_count = 0;
|
||||||
|
Reference in New Issue
Block a user