mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	3d:: extra_generation_distance (todo: make it configurable from menus)
This commit is contained in:
		
							
								
								
									
										3
									
								
								hyper.h
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								hyper.h
									
									
									
									
									
								
							| @@ -4918,5 +4918,8 @@ bool normal_gravity_at(cell *c); | ||||
| void build_pool(cell *c, bool with_boat); | ||||
| void createArrowTrapAt(cell *c, eLand land); | ||||
| bool no_barriers_in_radius(cell *c, int rad); | ||||
|  | ||||
| extern ld extra_generation_distance; | ||||
|  | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -1548,11 +1548,13 @@ bool do_draw(cell *c) { | ||||
|   return true; | ||||
|   }   | ||||
|  | ||||
| ld extra_generation_distance = 99; | ||||
|  | ||||
| bool do_draw(cell *c, const transmatrix& T) { | ||||
|   if(DIM == 3) { | ||||
|     if(hyperbolic && T[DIM][DIM] > cosh(sightranges[geometry])) return false; | ||||
|     if(euclid && hypot_d(3, tC0(T)) > sightranges[geometry]) return false; | ||||
|     setdist(c, 7, c); | ||||
|     ld dist = hdist0(tC0(T)); | ||||
|     if(dist > sightranges[geometry]) return false; | ||||
|     if(dist <= extra_generation_distance) setdist(c, 7, c); | ||||
|     return true; | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue