diff options
author | alberth <alberth@openttd.org> | 2012-09-21 20:31:06 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2012-09-21 20:31:06 +0000 |
commit | 5add39d560aa28e95a7a4f84036ef5b1dd2e2e6b (patch) | |
tree | 83b96d1cc2850d8a6d5f7790c2dd1d99074ad043 /src/ground_vehicle.hpp | |
parent | 6853df46c7d2867ef3c03a0b29ec8d33f060c696 (diff) | |
download | openttd-5add39d560aa28e95a7a4f84036ef5b1dd2e2e6b.tar.xz |
(svn r24540) -Codechange: Remove the not-so-useful HALF_TILE_SIZE constant.
Diffstat (limited to 'src/ground_vehicle.hpp')
-rw-r--r-- | src/ground_vehicle.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ground_vehicle.hpp b/src/ground_vehicle.hpp index 65c856295..80a88b705 100644 --- a/src/ground_vehicle.hpp +++ b/src/ground_vehicle.hpp @@ -145,7 +145,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. */ - int 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) | (TILE_SIZE / 2), (this->y_pos & ~TILE_UNIT_MASK) | (TILE_SIZE / 2)); if (middle_z != this->z_pos) { SetBit(this->gv_flags, (middle_z > this->z_pos) ? GVF_GOINGUP_BIT : GVF_GOINGDOWN_BIT); |