diff options
author | bjarni <bjarni@openttd.org> | 2005-11-19 00:10:20 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-11-19 00:10:20 +0000 |
commit | e472fed85a8810180812d721d8a0486c64f5ec12 (patch) | |
tree | cd0dd5e221391009211b33dc366bc2b36e409550 /vehicle.c | |
parent | 22a46798378768271af6b90cd41327155a909dd2 (diff) | |
download | openttd-e472fed85a8810180812d721d8a0486c64f5ec12.tar.xz |
(svn r3219) -Codechange: removed the now obsolite code in the build train command to make half multiheaded engines
Diffstat (limited to 'vehicle.c')
-rw-r--r-- | vehicle.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1565,7 +1565,7 @@ int32 CmdCloneVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2) continue; } - cost = DoCommand(x, y, v->engine_type, 2, flags, CMD_BUILD_VEH(v->type)); + cost = DoCommand(x, y, v->engine_type, 1, flags, CMD_BUILD_VEH(v->type)); if (CmdFailed(cost)) return cost; @@ -1650,7 +1650,7 @@ static int32 ReplaceVehicle(Vehicle **w, byte flags) new_engine_type = p->engine_replacement[old_v->engine_type] == INVALID_ENGINE ? old_v->engine_type : p->engine_replacement[old_v->engine_type]; - cost = DoCommand(old_v->x_pos, old_v->y_pos, new_engine_type, 2, flags, CMD_BUILD_VEH(old_v->type)); + cost = DoCommand(old_v->x_pos, old_v->y_pos, new_engine_type, 1, flags, CMD_BUILD_VEH(old_v->type)); if (CmdFailed(cost)) return cost; if (flags & DC_EXEC) { |