mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	debugging pattern P
This commit is contained in:
		
							
								
								
									
										14
									
								
								pattern2.cpp
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								pattern2.cpp
									
									
									
									
									
								
							| @@ -1626,8 +1626,18 @@ EX namespace patterns { | |||||||
|         return 0xCCCC00; |         return 0xCCCC00; | ||||||
|         } |         } | ||||||
|       #endif |       #endif | ||||||
|       case 'M': |       case 'M': { | ||||||
|         return gradient(0, canvasback, 0, min(1.8/(1+celldist(c)), 1.), 1); |         int d = celldist(c); | ||||||
|  |         color_t res = gradient(0, canvasback, 0, min(1.8/(1+d), 1.), 1); | ||||||
|  |         if(d > 3) res |= 0x1000000; | ||||||
|  |         return res; | ||||||
|  |         } | ||||||
|  |       case 'P': { | ||||||
|  |         int d = celldistance(c, currentmap->gamestart()->move(0)); | ||||||
|  |         color_t res = gradient(0, canvasback, 0, min(1.8/(1+d), 1.), 1); | ||||||
|  |         if(d > 3) res |= 0x1000000; | ||||||
|  |         return res; | ||||||
|  |         } | ||||||
|       #if CAP_FIELD |       #if CAP_FIELD | ||||||
|       case 'S':  |       case 'S':  | ||||||
|         if(!hyperbolic) return canvasback; |         if(!hyperbolic) return canvasback; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue