fix(#826) wrong attr in friendly height tooltip

This commit is contained in:
Azgaar 2022-06-01 22:35:45 +03:00
parent 7eef4ea162
commit 9498976336
3 changed files with 3 additions and 3 deletions

View file

@ -291,7 +291,7 @@ function getDepth(f, p) {
// get user-friendly (real-world) height value from map data
function getFriendlyHeight([x, y]) {
const packH = pack.cells.h[findCell(x, y, grid)];
const packH = pack.cells.h[findCell(x, y)];
const gridH = grid.cells.h[findGridCell(x, y, grid)];
const h = packH < 20 ? gridH : packH;
return getHeight(h);