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:
parent
c27af655ce
commit
1913eb481c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user