summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
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/vehicle.cpp
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/vehicle.cpp')
-rw-r--r--src/vehicle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 96cc9a2ec..69fabc10f 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -2957,6 +2957,7 @@ extern const SaveLoad _common_veh_desc[] = {
SLE_VAR(Vehicle, cargo_days, SLE_UINT8),
SLE_CONDVAR(Vehicle, cargo_source, SLE_FILE_U8 | SLE_VAR_U16, 0, 6),
SLE_CONDVAR(Vehicle, cargo_source, SLE_UINT16, 7, SL_MAX_VERSION),
+ SLE_CONDVAR(Vehicle, cargo_source_xy, SLE_UINT32, 44, SL_MAX_VERSION),
SLE_VAR(Vehicle, cargo_cap, SLE_UINT16),
SLE_VAR(Vehicle, cargo_count, SLE_UINT16),