Changeset - r15:1120de087269
[Not reviewed]
master
0 1 0
dominik - 20 years ago 2004-08-10 21:28:43
dominik@openttd.org
(svn r16) Fix: Train refit cost based on _price.ship_base
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -1012,13 +1012,13 @@ int32 CmdRefitRailVehicle(int x, int y, 
 

	
 
	cost = 0;
 
	num = 0;
 

	
 
	do {
 
		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;
 
			if (flags & DC_EXEC) {
 
				v->cargo_count = 0;
 
				v->cargo_type = (byte)p2;
 
				InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
 
			}
0 comments (0 inline, 0 general)