diff options
author | truebrain <truebrain@openttd.org> | 2012-01-02 13:44:37 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2012-01-02 13:44:37 +0000 |
commit | 091bc25a90bb68118f7dbd0e4d750de266cbf855 (patch) | |
tree | 77aaea1eca3aa6705991e37d915c3e0aa5e4ce44 /src/ground_vehicle.hpp | |
parent | 0d929e877faf9572a80803db382ab973702e02c0 (diff) | |
download | openttd-091bc25a90bb68118f7dbd0e4d750de266cbf855.tar.xz |
(svn r23714) -Codechange: don't mix Viewport with non-viewport code
Diffstat (limited to 'src/ground_vehicle.hpp')
-rw-r--r-- | src/ground_vehicle.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ground_vehicle.hpp b/src/ground_vehicle.hpp index 7f8f2eb25..4ff0c09bf 100644 --- a/src/ground_vehicle.hpp +++ b/src/ground_vehicle.hpp @@ -226,10 +226,10 @@ struct GroundVehicle : public SpecializedVehicle<T, Type> { /** * Checks if the vehicle is in a slope and sets the required flags in that case. * @param new_tile True if the vehicle reached a new tile. - * @param turned Indicates if the vehicle has turned. + * @param update_delta Indicates to also update the delta. * @return Old height of the vehicle. */ - inline byte UpdateInclination(bool new_tile, bool turned) + inline byte UpdateInclination(bool new_tile, bool update_delta) { byte old_z = this->z_pos; @@ -239,7 +239,7 @@ struct GroundVehicle : public SpecializedVehicle<T, Type> { this->UpdateZPosition(); } - this->UpdateViewport(true, turned); + this->UpdateViewport(true, update_delta); return old_z; } |