Changeset - r3364:b604bde0e49a
[Not reviewed]
master
0 1 0
bjarni - 18 years ago 2006-03-29 20:57:17
bjarni@openttd.org
(svn r4159) added missing comments about refitting in CmdCloneVehicle
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
vehicle.c
Show inline comments
 
@@ -1549,12 +1549,14 @@ int32 CmdCloneVehicle(int x, int y, uint
 

	
 
		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(x, y, w->index, v->cargo_type, flags, CMD_REFIT_VEH(v->type));
 
				}
 
			}
 

	
 
			if (v->type == VEH_Train && !IsFrontEngine(v)) {
 
				// this s a train car
0 comments (0 inline, 0 general)