mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 23:50:27 +00:00
rulegen:: simplified get_parent_dir
This commit is contained in:
parent
cca9afaba9
commit
391d1a646b
@ -793,8 +793,9 @@ EX int get_parent_dir(tcell *c) {
|
||||
auto beats = [&] (int i, int old) {
|
||||
if(old == -1) return true;
|
||||
if(i%k != old%k) return i%k < old%k;
|
||||
if(old < i) old += n;
|
||||
return old <= i+n/2;
|
||||
return true;
|
||||
/* if(old < i) old += n;
|
||||
return old <= i+n/2; */
|
||||
};
|
||||
|
||||
int d = c->dist;
|
||||
|
Loading…
Reference in New Issue
Block a user