1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-04-08 03:36:43 +00:00

fixed a bug with check_orientation on closed/disksize

This commit is contained in:
Zeno Rogue 2025-03-11 01:27:38 +01:00
parent c27af655ce
commit 1913eb481c

View File

@ -85,7 +85,8 @@ void check_orientation(cell *c) {
if(board.count(c)) { tile_orientation_level[c] = 1000000; return; }
int maxlev = 0, dir = 0;
forCellIdCM(c1, i, c) {
if(!distance_from_board[c1]) continue;
if(!distance_from_board[c1] && !disksize && !closed_manifold) continue;
if(c1->land == laMemory) continue;
if(tile_orientation_level[c1] > maxlev)
maxlev = tile_orientation_level[c1], dir = i;
}