summaryrefslogtreecommitdiff
path: root/src/vehicle.h
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-01-31 22:33:24 +0000
committermaedhros <maedhros@openttd.org>2007-01-31 22:33:24 +0000
commitd8edc2bb98d3e15c53a4174e91e6882b1f835235 (patch)
treeb3824aeb166a5bf6f38d69ce8bec3354349343e6 /src/vehicle.h
parent43242302e01894c5aa5b6488537fcff75aa6a36d (diff)
downloadopenttd-d8edc2bb98d3e15c53a4174e91e6882b1f835235.tar.xz
(svn r8501) -Fix (r7377) [FS#539]: Keep track of how much cargo has been paid for, so that cargo cannot be paid for more than once.
Diffstat (limited to 'src/vehicle.h')
-rw-r--r--src/vehicle.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vehicle.h b/src/vehicle.h
index 8719ba91d..a23133188 100644
--- a/src/vehicle.h
+++ b/src/vehicle.h
@@ -31,7 +31,7 @@ enum VehStatus {
enum LoadStatus {
LS_LOADING_FINISHED,
LS_CARGO_UNLOADING,
- LS_CARGO_PAID_FOR,
+ /* LS_CARGO_PAID_FOR was here until savegame version 45. */
};
/* Effect vehicle types */
@@ -238,6 +238,7 @@ struct Vehicle {
bool leave_depot_instantly; // NOSAVE: stores if the vehicle needs to leave the depot it just entered. Used by autoreplace
uint16 load_unload_time_rem;
+ uint16 cargo_paid_for; // How much of the cargo currently on board has been paid for.
byte load_status;
int32 profit_this_year;