From 05b783e551102127f1e48aa579a58b9a1ec8fabb Mon Sep 17 00:00:00 2001 From: celestar Date: Mon, 15 Jan 2007 14:42:24 +0000 Subject: (svn r8144) -Fix: [FS#163] When a station is removed, vehicles do not get excessive payment any longer, as the origin TILE is now stored as long as the origin STATION for the transported cargos. Basically this is only a temporary fix until cargopackets are implemented, but it fixes one of the oldest known bugs (Special Thanks to Darkvater for lots of testing) --- src/station.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/station.h') diff --git a/src/station.h b/src/station.h index e2ec2e8a7..b6cffe1d2 100644 --- a/src/station.h +++ b/src/station.h @@ -18,6 +18,7 @@ typedef struct GoodsEntry { days_since_pickup(0), rating(175), enroute_from(INVALID_STATION), + enroute_from_xy(INVALID_TILE), last_speed(0), last_age(255), feeder_profit(0) @@ -27,6 +28,7 @@ typedef struct GoodsEntry { byte days_since_pickup; byte rating; StationID enroute_from; + TileIndex enroute_from_xy; byte enroute_time; byte last_speed; byte last_age; -- cgit v1.2.3-54-g00ecf