1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-07 09:13:02 +00:00

altmap height now uses an outside parameter

This commit is contained in:
Zeno Rogue
2021-07-30 15:31:33 +02:00
parent 83ffa89fbf
commit 8d913f525d
3 changed files with 7 additions and 6 deletions

View File

@@ -548,7 +548,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 ? altmap::hybrid_height(c->master->alt->alt) : 0;
int d = c->master->alt && c->master->alt->alt ? hybrid::altmap_heights[c->master->alt->alt] : 0;
d = sl2 ? 0 : abs(w.second - d);
PIU ( d += celldistAlt(w.first) );
return d;