diff options
author | celestar <celestar@openttd.org> | 2007-01-15 14:42:24 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2007-01-15 14:42:24 +0000 |
commit | 05b783e551102127f1e48aa579a58b9a1ec8fabb (patch) | |
tree | cad841bb152e6112359e6b75928562e7161a7c26 /src/vehicle.h | |
parent | 3b22cfe70d743cde8c268d415f311a0de4e630ea (diff) | |
download | openttd-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/vehicle.h')
-rw-r--r-- | src/vehicle.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehicle.h b/src/vehicle.h index 71ff5aab0..85b74135d 100644 --- a/src/vehicle.h +++ b/src/vehicle.h @@ -195,6 +195,7 @@ struct Vehicle { CargoID cargo_type; // type of cargo this vehicle is carrying byte cargo_days; // how many days have the pieces been in transit StationID cargo_source; // source of cargo + TileIndex cargo_source_xy; //< stores the Tile where the source station is located, in case it is removed uint16 cargo_cap; // total capacity uint16 cargo_count; // how many pieces are used byte cargo_subtype; ///< Used for livery refits (NewGRF variations) |