mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	fixed camera not rotating in Nil shmup
This commit is contained in:
		| @@ -1653,6 +1653,10 @@ EX void centerpc(ld aspd) { | ||||
|     transmatrix T = pc->at; | ||||
|     int sl = snakelevel(cwt.at); | ||||
|     if((sl || vid.eye) && WDIM == 2) T = T * zpush(cgi.SLEV[sl] - cgi.FLOOR + vid.eye); | ||||
|     /* in nonisotropic geometries, T is isometry * rotation, so iso_inverse does not work */ | ||||
|     if(nonisotropic) | ||||
|       View = inverse(T); | ||||
|     else | ||||
|       View = iso_inverse(T); | ||||
|     if(prod) NLP = ortho_inverse(pc->ori); | ||||
|     if(WDIM == 2) rotate_view( cspin(0, 1, M_PI) * cspin(2, 1, M_PI/2 + shmup::playerturny[id]) * spin(-M_PI/2) ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue