mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	Select the keyboard push-subdirection with Tab.
Previously, the keyboard push-subdirection was selected irregularly based on the exact angle of the map on the screen. Change it to be consistently clockwise or counterclockwise, switching with the Tab key. Also, have the keyboard push-subdirection help display on all pushable monsters. Previously, it'd only show on Palace Guards and Skeletons.
This commit is contained in:
		| @@ -3559,8 +3559,9 @@ EX transmatrix applyDowndir(cell *c, const cellfunction& cf) { | ||||
|   return ddspin180(c, patterns::downdir(c, cf)); | ||||
|   } | ||||
|  | ||||
| void draw_movement_arrows(cell *c, const transmatrix& V, int df) { | ||||
| EX bool keybd_subdir; | ||||
|  | ||||
| void draw_movement_arrows(cell *c, const transmatrix& V, int df) { | ||||
|   if(viewdists) return; | ||||
|    | ||||
|   string keylist = ""; | ||||
| @@ -3590,8 +3591,8 @@ void draw_movement_arrows(cell *c, const transmatrix& V, int df) { | ||||
|  | ||||
|       if((c->type & 1) && (isStunnable(c->monst) || isPushable(c->wall))) { | ||||
|         transmatrix Centered = rgpushxto0(unshift(tC0(cwtV))); | ||||
|         int sd = md.subdir; | ||||
|          | ||||
|         int sd = keybd_subdir ? 1 : -1; | ||||
|  | ||||
|         transmatrix T = iso_inverse(Centered) * rgpushxto0(Centered * tC0(V)) * lrspintox(Centered*tC0(V)) * spin(-sd * M_PI/S7) * xpush(0.2); | ||||
|          | ||||
|         if(vid.axes >= 5) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jacob Mandelson
					Jacob Mandelson