mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
fix(#826) wrong attr in friendly height tooltip
This commit is contained in:
parent
7eef4ea162
commit
9498976336
3 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue