private void captureLineInMap(int x1, int y1, int x2, int y2) {
			int x, y, temp;
			
			if (x1 == x2) {
				if (y1 > y2) {
					temp = x1; x1 = x2; x2 = temp; 
					temp = y1; y1 = y2; y2 = temp;
				}
				
				for (y = y1; y <= y2; y++)
					simulator.map.cells[x1][simulator.map.size - y] = Map.CELL_CAPTURED;
			} else {
				if (x1 > x2) {
					temp = x1; x1 = x2; x2 = temp;
					temp = y1; y1 = y2; y2 = temp;
				}
				
				int angel = Math.abs((y1 - y2) / (x1 - x2));
	
				for (x = x1; x <= x2; x++) {
					y = (int)(y1 + ((double)(y2 - y1) / (x2 - x1)) * (x - x1));
					
					for (int i = 0; i <= angel; i++)
						if (y + i >= Math.min(y1, y2) && y + i <= Math.max(y1, y2))
							simulator.map.cells[x + 1][simulator.map.size - y - i] = Map.CELL_CAPTURED;
				}
			}
		}