mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	sphere:: get_where did not memoize
This commit is contained in:
		| @@ -166,8 +166,12 @@ struct hrmap_spherical : hrmap_standard { | ||||
|     int d = celldist(c); | ||||
|     if(d == 0) return where[c] = Id; | ||||
|     else forCellIdCM(c1, i, c)  | ||||
|       if(celldist(c1) < d) | ||||
|         return get_where(c1) * iadj(c, i); | ||||
|       if(celldist(c1) < d) { | ||||
|         transmatrix T = get_where(c1); | ||||
|         T = T * iadj(c, i); | ||||
|         where[c] = T; | ||||
|         return T; | ||||
|         } | ||||
|     return Id; | ||||
|     } | ||||
|    | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue