mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-28 16:23:08 +00:00
irr:: celldist and (circular, not yet horocyclic) celldistAlt
This commit is contained in:
1 parent
35bb9ea95b
commit
f7e5f470dc
5 files changed
+77
-9
No files matched your search
@@ -1085,9 +1085,9 @@ int celldist(cell *c) {
|
||||
return eudist(decodeId(c->master));
|
||||
}
|
||||
if(sphere) return celldistance(c, currentmap->gamestart());
|
||||
if(irr::on) return irr::celldist(c, false);
|
||||
if(ctof(c)) return c->master->distance;
|
||||
if(gp::on) return gp::compute_dist(c, celldist);
|
||||
if(irr::on) return c->master->distance;
|
||||
int dx[MAX_S3];
|
||||
for(int u=0; u<S3; u++)
|
||||
dx[u] = createMov(c, u+u)->master->distance;
|
||||
@@ -1113,6 +1113,7 @@ int celldistAlt(cell *c) {
|
||||
return celldist(c) - 3;
|
||||
}
|
||||
if(!c->master->alt) return 0;
|
||||
if(irr::on) return irr::celldist(c, true);
|
||||
if(ctof(c)) return c->master->alt->distance;
|
||||
if(gp::on) return gp::compute_dist(c, celldistAlt);
|
||||
int dx[MAX_S3]; dx[0] = 0;
|
||||
|
||||
Reference in new issue
Block a user