mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	rug warning now can be disabled
This commit is contained in:
		
							
								
								
									
										1
									
								
								hyper.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								hyper.h
									
									
									
									
									
								
							| @@ -1346,6 +1346,7 @@ namespace mapeditor { | |||||||
| struct renderbuffer; | struct renderbuffer; | ||||||
|  |  | ||||||
| namespace rug { | namespace rug { | ||||||
|  |   extern bool display_warning; | ||||||
|   extern bool rugged; |   extern bool rugged; | ||||||
|   extern bool spatial_rug; |   extern bool spatial_rug; | ||||||
|   extern bool computed; |   extern bool computed; | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								rug.cpp
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								rug.cpp
									
									
									
									
									
								
							| @@ -1446,6 +1446,8 @@ void reopen() { | |||||||
|   if(!rugged) return; |   if(!rugged) return; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  | bool display_warning = true; | ||||||
|  |  | ||||||
| void init_model() { | void init_model() { | ||||||
|   clear_model(); |   clear_model(); | ||||||
|   genrug = true; |   genrug = true; | ||||||
| @@ -1478,7 +1480,7 @@ void init_model() { | |||||||
|     if(sphere && pmodel == mdDisk && vid.alpha > 1) |     if(sphere && pmodel == mdDisk && vid.alpha > 1) | ||||||
|       valid = false; |       valid = false; | ||||||
|      |      | ||||||
|     if(!valid) |     if(display_warning && !valid) | ||||||
|       gotoHelp( |       gotoHelp( | ||||||
|         "Note: this mode is based on what you see on the screen -- but re-rendered in another way. " |         "Note: this mode is based on what you see on the screen -- but re-rendered in another way. " | ||||||
|         "If not everything is shown on the screen (e.g., too zoomed in), the results will be incorrect " |         "If not everything is shown on the screen (e.g., too zoomed in), the results will be incorrect " | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue