1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-30 03:50:34 +00:00

rulegen:: simplified get_parent_dir

This commit is contained in:
Zeno Rogue 2021-11-01 17:25:50 +01:00
parent cca9afaba9
commit 391d1a646b

View File

@ -793,8 +793,9 @@ EX int get_parent_dir(tcell *c) {
auto beats = [&] (int i, int old) { auto beats = [&] (int i, int old) {
if(old == -1) return true; if(old == -1) return true;
if(i%k != old%k) return i%k < old%k; if(i%k != old%k) return i%k < old%k;
if(old < i) old += n; return true;
return old <= i+n/2; /* if(old < i) old += n;
return old <= i+n/2; */
}; };
int d = c->dist; int d = c->dist;