Change: Make ships stop and change direction slowly instead of instantly turning.

This commit is contained in:
Peter Nelson
2018-05-20 11:03:14 +01:00
committed by Charles Pigott
parent 479f13fc41
commit 225790892d
4 changed files with 49 additions and 12 deletions

View File

@@ -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() {}