diff options
author | Peter Nelson <peter1138@openttd.org> | 2018-05-20 11:03:14 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-01-24 20:47:40 +0000 |
commit | 225790892d923eb208af3844f4c08606afab046a (patch) | |
tree | 798bb99ff01eceeaee362ee280494bb5c6cf7658 /src/ship.h | |
parent | 479f13fc4133f2970aff82d2d0fb9b3c0cb919da (diff) | |
download | openttd-225790892d923eb208af3844f4c08606afab046a.tar.xz |
Change: Make ships stop and change direction slowly instead of instantly turning.
Diffstat (limited to 'src/ship.h')
-rw-r--r-- | src/ship.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ship.h b/src/ship.h index 6e73332a5..adbc32228 100644 --- a/src/ship.h +++ b/src/ship.h @@ -26,8 +26,9 @@ typedef std::deque<TrackdirByte> ShipPathCache; * All ships have this type. */ struct Ship FINAL : public SpecializedVehicle<Ship, VEH_SHIP> { - TrackBitsByte state; ///< The "track" the ship is following. - ShipPathCache path; ///< Cached path. + TrackBitsByte state; ///< The "track" the ship is following. + ShipPathCache path; ///< Cached path. + DirectionByte rotation; ///< Visible direction. /** We don't want GCC to zero our struct! It already is zeroed and has an index! */ Ship() : SpecializedVehicleBase() {} |