(svn r21877) -Codechange: move definition of HALF_TILE_SIZE to tile_type.h

This commit is contained in:
smatz
2011-01-21 15:48:52 +00:00
parent 6dc24cf643
commit 4432f7799d
2 changed files with 2 additions and 2 deletions

View File

@@ -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);