town_cmd.c
changeset 4231 2823b3643862
parent 4077 d4d440dd8925
child 4261 28670f743746
equal deleted inserted replaced
4230:f4e93251e2f6 4231:2823b3643862
   108 
   108 
   109 		if (proc >= 0) _town_draw_tile_procs[proc](ti);
   109 		if (proc >= 0) _town_draw_tile_procs[proc](ti);
   110 	}
   110 	}
   111 }
   111 }
   112 
   112 
   113 static uint GetSlopeZ_Town(const TileInfo* ti)
   113 static uint GetSlopeZ_Town(TileIndex tile, uint x, uint y)
   114 {
   114 {
   115 	return ti->z + (ti->tileh == SLOPE_FLAT ? 0 : TILE_HEIGHT);
   115 	return GetTileMaxZ(tile);
   116 }
   116 }
   117 
   117 
   118 static Slope GetSlopeTileh_Town(TileIndex tile, Slope tileh)
   118 static Slope GetSlopeTileh_Town(TileIndex tile, Slope tileh)
   119 {
   119 {
   120 	return SLOPE_FLAT;
   120 	return SLOPE_FLAT;