diff options
author | rubidium <rubidium@openttd.org> | 2014-09-21 12:44:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-09-21 12:44:38 +0000 |
commit | 14a599409e2e73b7a31b12f80741baa07fc7502c (patch) | |
tree | b8c388932397cd549fd5e44dcdec16065c483101 /src/ground_vehicle.hpp | |
parent | 7b27a28f0a961f23b2998b65a06723fcfc3a3535 (diff) | |
download | openttd-14a599409e2e73b7a31b12f80741baa07fc7502c.tar.xz |
(svn r26888) -Codechange: use ints for some z-levels of vehicles (ic111)
Diffstat (limited to 'src/ground_vehicle.hpp')
-rw-r--r-- | src/ground_vehicle.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ground_vehicle.hpp b/src/ground_vehicle.hpp index c38c6c4b7..56b97875f 100644 --- a/src/ground_vehicle.hpp +++ b/src/ground_vehicle.hpp @@ -231,9 +231,9 @@ struct GroundVehicle : public SpecializedVehicle<T, Type> { * @param update_delta Indicates to also update the delta. * @return Old height of the vehicle. */ - inline byte UpdateInclination(bool new_tile, bool update_delta) + inline int UpdateInclination(bool new_tile, bool update_delta) { - byte old_z = this->z_pos; + int old_z = this->z_pos; if (new_tile) { this->UpdateZPositionAndInclination(); |