diff options
author | maedhros <maedhros@openttd.org> | 2007-02-28 17:18:36 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-02-28 17:18:36 +0000 |
commit | aadd8a4b44e0f67e5a2ccb685a56fc258c1eb9ff (patch) | |
tree | 1d7abddc5b0568b06084eb248dba4886fdc92637 /src/vehicle.h | |
parent | f865f0a44550f0433495e494c66928d4e9a82aad (diff) | |
download | openttd-aadd8a4b44e0f67e5a2ccb685a56fc258c1eb9ff.tar.xz |
(svn r8945) -Codechange: Rename v->load_status to v->vehicle_flags so it can be used for more than just the gradual loading status.
Diffstat (limited to 'src/vehicle.h')
-rw-r--r-- | src/vehicle.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/vehicle.h b/src/vehicle.h index a0b7fb875..d14da3a7f 100644 --- a/src/vehicle.h +++ b/src/vehicle.h @@ -83,10 +83,9 @@ enum VehStatus { VS_CRASHED = 0x80, }; -enum LoadStatus { - LS_LOADING_FINISHED, - LS_CARGO_UNLOADING, - /* LS_CARGO_PAID_FOR was here until savegame version 45. */ +enum VehicleFlags { + VF_LOADING_FINISHED, + VF_CARGO_UNLOADING, }; /* Effect vehicle types */ @@ -294,7 +293,7 @@ struct Vehicle { uint16 load_unload_time_rem; uint16 cargo_paid_for; // How much of the cargo currently on board has been paid for. - byte load_status; + byte vehicle_flags; // Used for gradual loading and other miscellaneous things (@see VehicleFlags enum) int32 profit_this_year; int32 profit_last_year; |