mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	added missing CAP_RAY guard
This commit is contained in:
		
							
								
								
									
										18
									
								
								hypgraph.cpp
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								hypgraph.cpp
									
									
									
									
									
								
							| @@ -1579,8 +1579,22 @@ struct flat_model_enabler { | |||||||
|   projection_configuration bak; |   projection_configuration bak; | ||||||
|   ld sf;   |   ld sf;   | ||||||
|   bool ru; |   bool ru; | ||||||
|   flat_model_enabler() { bak = pconf; sf = stretch::factor; stretch::factor = 0; ru = ray::in_use; ray::in_use = false; enable_flat_model(); } |   flat_model_enabler() {  | ||||||
|   ~flat_model_enabler() { pconf = bak; stretch::factor = sf; ray::in_use = ru; calcparam(); } |     bak = pconf; | ||||||
|  |     sf = stretch::factor; stretch::factor = 0;  | ||||||
|  |     #if CAP_RAY | ||||||
|  |     ru = ray::in_use; ray::in_use = false;  | ||||||
|  |     #endif | ||||||
|  |     enable_flat_model();  | ||||||
|  |     } | ||||||
|  |   ~flat_model_enabler() { | ||||||
|  |     pconf = bak; | ||||||
|  |     stretch::factor = sf;  | ||||||
|  |     #if CAP_RAY | ||||||
|  |     ray::in_use = ru;  | ||||||
|  |     #endif | ||||||
|  |     calcparam(); | ||||||
|  |     } | ||||||
|   }; |   }; | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue