summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-03-29 20:57:17 +0000
committerbjarni <bjarni@openttd.org>2006-03-29 20:57:17 +0000
commit166465fa4edec44eb8460581d7e50b1b199b731f (patch)
treec73008c111740de78f88484a9e7a35170cebbac8
parent1fe0a3241fac7f891aa9821c6378f705072ca81e (diff)
downloadopenttd-166465fa4edec44eb8460581d7e50b1b199b731f.tar.xz
(svn r4159) added missing comments about refitting in CmdCloneVehicle
-rw-r--r--vehicle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vehicle.c b/vehicle.c
index 35c0db24c..90cf7e3fa 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -1552,6 +1552,8 @@ int32 CmdCloneVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2)
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));
}
}