mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-03 06:24:30 +00:00
altmap parameters are now accessible via altmap:: functions
This commit is contained in:
1 parent
bac88ea9fd
commit
05d4fcc280
2 files changed
+14
-15
No files matched your search
@@ -545,7 +545,7 @@ EX int celldistAlt(cell *c) {
|
||||
if(hybri) {
|
||||
if(in_s2xe()) return hybrid::get_where(c).second;
|
||||
auto w = hybrid::get_where(c);
|
||||
int d = c->master->alt && c->master->alt->alt ? c->master->alt->alt->fieldval : 0;
|
||||
int d = c->master->alt && c->master->alt->alt ? altmap::hybrid_height(c->master->alt->alt) : 0;
|
||||
d = sl2 ? 0 : abs(w.second - d);
|
||||
PIU ( d += celldistAlt(w.first) );
|
||||
return d;
|
||||
|
||||
Reference in new issue
Block a user