mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	no godir change if no movement (just in case)
This commit is contained in:
		| @@ -1655,7 +1655,7 @@ void movePlayer(monster *m, int delta) { | |||||||
|    |    | ||||||
|   godir[cpid] = 0; |   godir[cpid] = 0; | ||||||
|  |  | ||||||
|   if(WDIM == 2 && GDIM == 3) { |   if(WDIM == 2 && GDIM == 3 && (mdx || mdy)) { | ||||||
|     double mdd = hypot(mdx, mdy); |     double mdd = hypot(mdx, mdy); | ||||||
|     godir[cpid] = -atan2(mdx, -mdy); |     godir[cpid] = -atan2(mdx, -mdy); | ||||||
|     mgo += mdd; |     mgo += mdd; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue