diff options
author | smatz <smatz@openttd.org> | 2011-01-21 15:48:52 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2011-01-21 15:48:52 +0000 |
commit | 4432f7799d5f24070d6979242dd0107edf42ede0 (patch) | |
tree | 43c4faebbb99bc2ddb2f6233ddcca4e42bddf4d2 /src/ground_vehicle.hpp | |
parent | 6dc24cf6431be66432d53f33d92ef5abbc80f88c (diff) | |
download | openttd-4432f7799d5f24070d6979242dd0107edf42ede0.tar.xz |
(svn r21877) -Codechange: move definition of HALF_TILE_SIZE to tile_type.h
Diffstat (limited to 'src/ground_vehicle.hpp')
-rw-r--r-- | src/ground_vehicle.hpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ground_vehicle.hpp b/src/ground_vehicle.hpp index 0a17ea209..0e22b144b 100644 --- a/src/ground_vehicle.hpp +++ b/src/ground_vehicle.hpp @@ -125,7 +125,6 @@ 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. */ - static const int HALF_TILE_SIZE = TILE_SIZE / 2; static const int INV_TILE_SIZE_MASK = ~(TILE_SIZE - 1); byte middle_z = GetSlopeZ((this->x_pos & INV_TILE_SIZE_MASK) | HALF_TILE_SIZE, (this->y_pos & INV_TILE_SIZE_MASK) | HALF_TILE_SIZE); |