summaryrefslogtreecommitdiff
path: root/src/ground_vehicle.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-04 11:52:19 +0000
committerrubidium <rubidium@openttd.org>2011-11-04 11:52:19 +0000
commit2a2c102b0b173d6ebcfb90291eb56e82c4e935a7 (patch)
treeeea14ef6e9fcafd4cb4fb4a1a4aec8cbf1f928b7 /src/ground_vehicle.hpp
parent459c9523e8acdf314ce697460f4768eec228daac (diff)
downloadopenttd-2a2c102b0b173d6ebcfb90291eb56e82c4e935a7.tar.xz
(svn r23108) -Codechange: more uint -> int / byte -> int conversions for Z related variables
Diffstat (limited to 'src/ground_vehicle.hpp')
-rw-r--r--src/ground_vehicle.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ground_vehicle.hpp b/src/ground_vehicle.hpp
index 600082e21..7bf93f5c9 100644
--- a/src/ground_vehicle.hpp
+++ b/src/ground_vehicle.hpp
@@ -143,7 +143,7 @@ struct GroundVehicle : public SpecializedVehicle<T, Type> {
* direction it is sloped, we get the 'z' at the center of
* the tile (middle_z) and the edge of the tile (old_z),
* which we then can compare. */
- byte middle_z = GetSlopePixelZ((this->x_pos & ~TILE_UNIT_MASK) | HALF_TILE_SIZE, (this->y_pos & ~TILE_UNIT_MASK) | HALF_TILE_SIZE);
+ int middle_z = GetSlopePixelZ((this->x_pos & ~TILE_UNIT_MASK) | HALF_TILE_SIZE, (this->y_pos & ~TILE_UNIT_MASK) | HALF_TILE_SIZE);
if (middle_z != this->z_pos) {
SetBit(this->gv_flags, (middle_z > this->z_pos) ? GVF_GOINGUP_BIT : GVF_GOINGDOWN_BIT);