summaryrefslogtreecommitdiff
path: root/src/station.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2007-01-15 14:42:24 +0000
committercelestar <celestar@openttd.org>2007-01-15 14:42:24 +0000
commit05b783e551102127f1e48aa579a58b9a1ec8fabb (patch)
treecad841bb152e6112359e6b75928562e7161a7c26 /src/station.h
parent3b22cfe70d743cde8c268d415f311a0de4e630ea (diff)
downloadopenttd-05b783e551102127f1e48aa579a58b9a1ec8fabb.tar.xz
(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)
Diffstat (limited to 'src/station.h')
-rw-r--r--src/station.h2
1 files changed, 2 insertions, 0 deletions
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;