mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-11-04 07:43:02 +00:00 
			
		
		
		
	rogueviz:: use adj just in case
This commit is contained in:
		@@ -552,8 +552,11 @@ map<pair<cell*, cell*>, transmatrix> relmatrices;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
transmatrix& memo_relative_matrix(cell *c1, cell *c2) {
 | 
					transmatrix& memo_relative_matrix(cell *c1, cell *c2) {
 | 
				
			||||||
  auto& p = relmatrices[make_pair(c1, c2)];
 | 
					  auto& p = relmatrices[make_pair(c1, c2)];
 | 
				
			||||||
  if(p[2][2] == 0)
 | 
					  if(p[2][2] == 0) {
 | 
				
			||||||
 | 
					    forCellIdEx(c3, i, c2) if(c3 == c1)
 | 
				
			||||||
 | 
					      return p = currentmap->adj(c2, i);
 | 
				
			||||||
    p = calc_relative_matrix(c1, c2,  C0);
 | 
					    p = calc_relative_matrix(c1, c2,  C0);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
  return p;
 | 
					  return p;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user