mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	refactored grid_prec
This commit is contained in:
		| @@ -814,10 +814,15 @@ void celldrawer::draw_boat() { | |||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
| void celldrawer::draw_grid() { | EX int grid_prec() { | ||||||
|  |  | ||||||
|   int prec = sphere ? 3 : 1; |   int prec = sphere ? 3 : 1; | ||||||
|   prec += vid.linequality; |   prec += vid.linequality; | ||||||
|  |   return prec; | ||||||
|  |   } | ||||||
|  |  | ||||||
|  | void celldrawer::draw_grid() { | ||||||
|  |  | ||||||
|  |   int prec = grid_prec(); | ||||||
|    |    | ||||||
|   if(vid.grid && c->bardir != NODIR && c->bardir != NOBARRIERS && c->land != laHauntedWall && |   if(vid.grid && c->bardir != NODIR && c->bardir != NOBARRIERS && c->land != laHauntedWall && | ||||||
|     c->barleft != NOWALLSEP_USED && GDIM == 2) { |     c->barleft != NOWALLSEP_USED && GDIM == 2) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue