equal
deleted
inserted
replaced
248 } |
248 } |
249 |
249 |
250 DrawClearLandFence(ti); |
250 DrawClearLandFence(ti); |
251 |
251 |
252 z = ti->z; |
252 z = ti->z; |
253 if (ti->tileh != 0) { |
253 if (ti->tileh != SLOPE_FLAT) { |
254 z += 4; |
254 z += 4; |
255 if (IsSteepTileh(ti->tileh)) |
255 if (IsSteepSlope(ti->tileh)) z += 4; |
256 z += 4; |
|
257 } |
256 } |
258 |
257 |
259 { |
258 { |
260 uint16 tmp = ti->x; |
259 uint16 tmp = ti->x; |
261 uint index; |
260 uint index; |
327 static uint GetSlopeZ_Trees(const TileInfo* ti) |
326 static uint GetSlopeZ_Trees(const TileInfo* ti) |
328 { |
327 { |
329 return GetPartialZ(ti->x & 0xF, ti->y & 0xF, ti->tileh) + ti->z; |
328 return GetPartialZ(ti->x & 0xF, ti->y & 0xF, ti->tileh) + ti->z; |
330 } |
329 } |
331 |
330 |
332 static uint GetSlopeTileh_Trees(TileIndex tile, uint tileh) |
331 static Slope GetSlopeTileh_Trees(TileIndex tile, Slope tileh) |
333 { |
332 { |
334 return tileh; |
333 return tileh; |
335 } |
334 } |
336 |
335 |
337 static int32 ClearTile_Trees(TileIndex tile, byte flags) |
336 static int32 ClearTile_Trees(TileIndex tile, byte flags) |