diff options
author | Peter Nelson <peter1138@openttd.org> | 2019-01-31 20:54:15 +0000 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-02-04 00:19:48 +0000 |
commit | 33e3f4916173b4129cbbe60f94dae659a70edb83 (patch) | |
tree | 2384acf24eafd4fa75910401c58e859926c1bb4c /src/ship.h | |
parent | 0749a291c4941511744e82a315ee34d96e053fb1 (diff) | |
download | openttd-33e3f4916173b4129cbbe60f94dae659a70edb83.tar.xz |
Fix #7119: When rotating a ship, apply an additional offset to avoid movement glitch.
Diffstat (limited to 'src/ship.h')
-rw-r--r-- | src/ship.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ship.h b/src/ship.h index adbc32228..60d4466d6 100644 --- a/src/ship.h +++ b/src/ship.h @@ -29,6 +29,8 @@ struct Ship FINAL : public SpecializedVehicle<Ship, VEH_SHIP> { TrackBitsByte state; ///< The "track" the ship is following. ShipPathCache path; ///< Cached path. DirectionByte rotation; ///< Visible direction. + int16 rotation_x_pos; ///< NOSAVE: X Position before rotation. + int16 rotation_y_pos; ///< NOSAVE: Y Position before rotation. /** We don't want GCC to zero our struct! It already is zeroed and has an index! */ Ship() : SpecializedVehicleBase() {} |