mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-27 11:57:40 +00:00
fixed a bug with check_orientation on closed/disksize
This commit is contained in:
@@ -85,7 +85,8 @@ void check_orientation(cell *c) {
|
|||||||
if(board.count(c)) { tile_orientation_level[c] = 1000000; return; }
|
if(board.count(c)) { tile_orientation_level[c] = 1000000; return; }
|
||||||
int maxlev = 0, dir = 0;
|
int maxlev = 0, dir = 0;
|
||||||
forCellIdCM(c1, i, c) {
|
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)
|
if(tile_orientation_level[c1] > maxlev)
|
||||||
maxlev = tile_orientation_level[c1], dir = i;
|
maxlev = tile_orientation_level[c1], dir = i;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user