vehicle.c
changeset 4287 27182ee2e707
parent 4270 cfb529779a26
child 4326 c2ae4dbc1074
--- a/vehicle.c	Tue Aug 15 15:18:03 2006 +0000
+++ b/vehicle.c	Tue Aug 15 15:27:30 2006 +0000
@@ -1577,12 +1577,10 @@
 		if (flags & DC_EXEC) {
 			w = GetVehicle(_new_vehicle_id);
 
-			if (v->type != VEH_Road) { // road vehicles can't be refitted
-				if (v->cargo_type != w->cargo_type) {
-					// we can't pay for refitting because we can't estimate refitting costs for a vehicle before it's build
-					// if we pay for it anyway, the cost and the estimated cost will not be the same and we will have an assert
-					DoCommand(0, w->index, v->cargo_type, flags, CMD_REFIT_VEH(v->type));
-				}
+			if (v->cargo_type != w->cargo_type) {
+				// we can't pay for refitting because we can't estimate refitting costs for a vehicle before it's build
+				// if we pay for it anyway, the cost and the estimated cost will not be the same and we will have an assert
+				DoCommand(0, w->index, v->cargo_type, flags, CMD_REFIT_VEH(v->type));
 			}
 			if (v->type == VEH_Train && HASBIT(v->u.rail.flags, VRF_REVERSE_DIRECTION)) {
 				SETBIT(w->u.rail.flags, VRF_REVERSE_DIRECTION);