fixed mine gen 2
This commit is contained in:
		
					parent
					
						
							
								80bdba9faf
							
						
					
				
			
			
				commit
				
					
						bae80a90f0
					
				
			
		
					 1 changed files with 2 additions and 10 deletions
				
			
		|  | @ -114,16 +114,8 @@ public class Game { | |||
|             } | ||||
| 
 | ||||
|             while (state[x][y].type == Cell.CellType.Mine) { | ||||
|                 x++; | ||||
| 
 | ||||
|                 if(x >= width) { | ||||
|                     x = 0; | ||||
|                     y++; | ||||
| 
 | ||||
|                     if(y >= height) { | ||||
|                         y=0; | ||||
|                     } | ||||
|                 } | ||||
|                 i--; | ||||
|                 continue; | ||||
|             } | ||||
|             state[x][y].setType(Cell.CellType.Mine); | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue