diff options
author | rubidium <rubidium@openttd.org> | 2010-01-17 23:03:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-17 23:03:43 +0000 |
commit | 23a8d2239f22940553ff02bb652cb19a6a0feb64 (patch) | |
tree | 012b1e14d5f774bbc16960f44a3d29aec7e4d571 /src/train.h | |
parent | 11e3a00a23148c96c497c8ba28e1f2c0583e966c (diff) | |
download | openttd-23a8d2239f22940553ff02bb652cb19a6a0feb64.tar.xz |
(svn r18854) -Codechange [FS#3539]: unconflict acceleration type as 'status' and rail property (Terhken)
Diffstat (limited to 'src/train.h')
-rw-r--r-- | src/train.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/train.h b/src/train.h index 9749acb4b..f61febf0c 100644 --- a/src/train.h +++ b/src/train.h @@ -93,10 +93,10 @@ struct TrainCache { EngineID first_engine; ///< cached EngineID of the front vehicle. INVALID_ENGINE for the front vehicle itself. }; -/** What type of acceleration should we do? */ -enum AccelType { - AM_ACCEL, ///< We want to go faster, if possible ofcourse - AM_BRAKE ///< We want to stop +/** What is the status of our acceleration? */ +enum AccelStatus { + AS_ACCEL, ///< We want to go faster, if possible ofcourse + AS_BRAKE ///< We want to stop }; /** @@ -444,9 +444,9 @@ protected: /* These functions should not be called outside acceleration code. */ * Checks the current acceleration status of this vehicle. * @return Acceleration status. */ - FORCEINLINE AccelType GetAccelerationStatus() const + FORCEINLINE AccelStatus GetAccelerationStatus() const { - return (this->vehstatus & VS_STOPPED) || HasBit(this->flags, VRF_REVERSING) || HasBit(this->flags, VRF_TRAIN_STUCK) ? AM_BRAKE : AM_ACCEL; + return (this->vehstatus & VS_STOPPED) || HasBit(this->flags, VRF_REVERSING) || HasBit(this->flags, VRF_TRAIN_STUCK) ? AS_BRAKE : AS_ACCEL; } /** |