mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	fixed colors of underwater compasses and rugs
This commit is contained in:
		
							
								
								
									
										16
									
								
								graph.cpp
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								graph.cpp
									
									
									
									
									
								
							| @@ -866,10 +866,11 @@ EX bool drawItemType(eItem it, cell *c, const transmatrix& V, color_t icol, int | |||||||
|       } |       } | ||||||
|     else { |     else { | ||||||
|       if(c) V2 = V2 * spin(M_PI * sintick(100) / 30); |       if(c) V2 = V2 * spin(M_PI * sintick(100) / 30); | ||||||
|       queuepoly(V2, cgi.shCompass1, 0xFF8080FF); |       color_t hider = hidden ? 0xFFFFFF20 : 0xFFFFFFFF; | ||||||
|       queuepoly(V2, cgi.shCompass2, 0xFFFFFFFF); |       queuepoly(V2, cgi.shCompass1, 0xFF8080FF & hider); | ||||||
|       queuepoly(V2, cgi.shCompass3, 0xFF0000FF); |       queuepoly(V2, cgi.shCompass2, 0xFFFFFFFF & hider); | ||||||
|       queuepoly(V2 * pispin, cgi.shCompass3, 0x000000FF); |       queuepoly(V2, cgi.shCompass3, 0xFF0000FF & hider); | ||||||
|  |       queuepoly(V2 * pispin, cgi.shCompass3, 0x000000FF & hider); | ||||||
|       } |       } | ||||||
|     xsh = NULL; |     xsh = NULL; | ||||||
|     } |     } | ||||||
| @@ -902,10 +903,11 @@ EX bool drawItemType(eItem it, cell *c, const transmatrix& V, color_t icol, int | |||||||
|     else  |     else  | ||||||
|     #endif |     #endif | ||||||
|     { |     { | ||||||
|  |       color_t hider = hidden ? 0xFFFFFF20 : 0xFFFFFFFF; | ||||||
|       transmatrix V2 = Vit * spin(ticks / 1500.); |       transmatrix V2 = Vit * spin(ticks / 1500.); | ||||||
|       draw_floorshape(c, V2, cgi.shMFloor3, 0xFFD500FF); |       draw_floorshape(c, V2, cgi.shMFloor3, 0xFFD500FF & hider); | ||||||
|       draw_floorshape(c, V2, cgi.shMFloor4, darkena(icol, 0, 0xFF)); |       draw_floorshape(c, V2, cgi.shMFloor4, darkena(icol, 0, 0xFF) & hider); | ||||||
|       queuepoly(V2, cgi.shGem[ct6], 0xFFD500FF); |       queuepoly(V2, cgi.shGem[ct6], 0xFFD500FF & hider); | ||||||
|       } |       } | ||||||
|     xsh = NULL; |     xsh = NULL; | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue