public void create_line(int x1, int y1, int x2, int y2, byte rd, byte id, int Width, int Height, int winZoom, byte[][] Map, int[][] VMap, byte[][] PMap, float[][] HMap, int Shape) // From old autorun.lua
	{
		if (x1 > x2) {
			int xc2 = x1;
			x1 = x2;
			x2 = xc2;
			int yc2 = y1;
			y1 = y2;
			y2 = yc2;
		}
		drawstuff(x1, y1, rd, id, Width, Height, winZoom, Map, VMap, PMap, HMap, Shape);
		if (x1 == x2) {
			if (y1 != y2) {
				int yc1 = Math.min(y1, y2);
				int yc2 = Math.max(y1, y2);
				for (int i = yc1; i < yc2; i++)
					drawstuff(x1, i, rd, id, Width, Height, winZoom, Map, VMap, PMap, HMap, Shape);
			}
			return;
		}
		double slope = (double) (y2 - y1) / (x2 - x1);
		for (int i = x1; i < x2; i++) {
			double yc1 = y1 + slope * (i - x1);
			double yc2 = y1 + slope * (i + 1 - x1);
			int left = (int) Math.floor(Math.min(yc1, yc2));
			int right = (int) Math.ceil(Math.max(yc1, yc2));
			if (i == x2) right = left;
			for (int j = left; j <= right; j++)
				drawstuff(i, j, rd, id, Width, Height, winZoom, Map, VMap, PMap, HMap, Shape);
		}
	}