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

@ -6119,7 +6119,7 @@
<script src="modules/ui/measurers.js?v=18052022"></script> <script src="modules/ui/measurers.js?v=18052022"></script>
<script src="modules/ui/stylePresets.js"></script> <script src="modules/ui/stylePresets.js"></script>
<script src="modules/ui/general.js?v=29052022"></script> <script src="modules/ui/general.js?v=02062022"></script>
<script src="modules/ui/options.js?v=29052022"></script> <script src="modules/ui/options.js?v=29052022"></script>
<script src="main.js?v=01062022"></script> <script src="main.js?v=01062022"></script>

View file

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

View file

@ -1,7 +1,7 @@
"use strict"; "use strict";
// version and caching control // version and caching control
const version = "1.84.04"; // generator version, update each time const version = "1.84.05"; // generator version, update each time
{ {
document.title += " v" + version; document.title += " v" + version;