mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 05:23:00 +00:00 
			
		
		
		
	correctly display/rotate the PC in product
This commit is contained in:
		
							
								
								
									
										10
									
								
								shmup.cpp
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								shmup.cpp
									
									
									
									
									
								
							| @@ -2938,7 +2938,15 @@ bool celldrawer::draw_shmup_monster() { | |||||||
|          |          | ||||||
|         if(!ths || !h) { |         if(!ths || !h) { | ||||||
|           drawPlayerEffects(view, c, true); |           drawPlayerEffects(view, c, true); | ||||||
|           if(WDIM == 3) view = view * spin(-M_PI/2) * cspin(0, 2, -M_PI/2); |           if(WDIM == 3) { | ||||||
|  |             if(prod) { | ||||||
|  |               hyperpoint h = m->ori * C0; | ||||||
|  |               view = view * spin(-atan2(h[1], h[0])); | ||||||
|  |               } | ||||||
|  |             else { | ||||||
|  |               view = view * spin(-M_PI/2) * cspin(0, 2, -M_PI/2); | ||||||
|  |               } | ||||||
|  |             } | ||||||
|           if(m->inBoat) m->footphase = 0; |           if(m->inBoat) m->footphase = 0; | ||||||
|           if(mapeditor::drawplayer) drawMonsterType(moPlayer, c, view, 0xFFFFFFC0, m->footphase, 0xFFFFFFC0); |           if(mapeditor::drawplayer) drawMonsterType(moPlayer, c, view, 0xFFFFFFC0, m->footphase, 0xFFFFFFC0); | ||||||
|           } |           } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue