diff options
author | tron <tron@openttd.org> | 2005-12-29 12:42:59 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-12-29 12:42:59 +0000 |
commit | ed4b89ee3624784d7ca0896ebc698be814744c60 (patch) | |
tree | 471052da802f2cc20f631ca0291f7337c78cd45d /order_cmd.c | |
parent | 901068fd6e2b2c7059a59b5ec97c92e1ffe0633c (diff) | |
download | openttd-ed4b89ee3624784d7ca0896ebc698be814744c60.tar.xz |
(svn r3353) Simplify the automatic length adjustment algorithm for replacing trains: Use the length of the train before the replacement as reference length
Diffstat (limited to 'order_cmd.c')
-rw-r--r-- | order_cmd.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/order_cmd.c b/order_cmd.c index 64c7878e0..43595e508 100644 --- a/order_cmd.c +++ b/order_cmd.c @@ -386,7 +386,6 @@ int32 CmdInsertOrder(int x, int y, uint32 flags, uint32 p1, uint32 p2) } /* Update any possible open window of the vehicle */ InvalidateVehicleOrder(u); - if (u->type == VEH_Train) u->u.rail.shortest_platform[1] = 0; // we changed the orders so we invalidate the station length collector u = u->next_shared; } @@ -517,7 +516,6 @@ int32 CmdSkipOrder(int x, int y, uint32 flags, uint32 p1, uint32 p2) if (v->current_order.type == OT_LOADING && HASBIT(v->current_order.flags, OFB_NON_STOP)) v->current_order.flags = 0; - if (v->type == VEH_Train) v->u.rail.shortest_platform[1] = 0; // we changed the orders so we invalidate the station length collector InvalidateVehicleOrder(v); } @@ -660,7 +658,6 @@ int32 CmdCloneOrder(int x, int y, uint32 flags, uint32 p1, uint32 p2) InvalidateVehicleOrder(src); RebuildVehicleLists(); - if (dst->type == VEH_Train) dst->u.rail.shortest_platform[1] = 0; // we changed the orders so we invalidate the station length collector } } break; @@ -720,7 +717,6 @@ int32 CmdCloneOrder(int x, int y, uint32 flags, uint32 p1, uint32 p2) InvalidateVehicleOrder(dst); RebuildVehicleLists(); - if (dst->type == VEH_Train) dst->u.rail.shortest_platform[1] = 0; // we changed the orders so we invalidate the station length collector } } break; |