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
commitf69794b8c1c5dcf511e1b4a6aed20bda1bfba312 (patch)
treecad841bb152e6112359e6b75928562e7161a7c26 /src/station.h
parentf8c650fa3ac57848c8be7c1d52d21dbfd6d180a6 (diff)
downloadopenttd-f69794b8c1c5dcf511e1b4a6aed20bda1bfba312.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;