| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -376,13 +376,10 @@ public class HeightMap { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        int maxX = (int) (this.fullExtentsX / this.bucketWidthX); | 
					 | 
					 | 
					 | 
					        int maxX = (int) (this.fullExtentsX / this.bucketWidthX); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        int maxY = (int) (this.fullExtentsY / this.bucketWidthY); | 
					 | 
					 | 
					 | 
					        int maxY = (int) (this.fullExtentsY / this.bucketWidthY); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //flip the Y so it grabs from the bottom left instead of top left.
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //zoneLoc.setY(maxZoneHeight - zoneLoc.y);
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        gridSquare = getGridSquare(zoneLoc); | 
					 | 
					 | 
					 | 
					        gridSquare = getGridSquare(zoneLoc); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        int gridX = (int) gridSquare.x; | 
					 | 
					 | 
					 | 
					        int gridX = (int) gridSquare.x; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        int gridY = (int) (gridSquare.y); | 
					 | 
					 | 
					 | 
					        int gridY = (int) gridSquare.y; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if (gridX > maxX) | 
					 | 
					 | 
					 | 
					        if (gridX > maxX) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            gridX = maxX; | 
					 | 
					 | 
					 | 
					            gridX = maxX; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |