mirror of
https://github.com/bdnugget/freeminer.git
synced 2026-11-07 06:57:27 +00:00
fix
This commit is contained in:
1 parent
223b099d2b
commit
cc0c53e3ff
1 file changed
+5
@@ -151,6 +151,11 @@ height::height_t hgts::get(const height_hgt::ll_t lat, const height_hgt::ll_t lo
|
||||
if (hgt->load(lat, lon)) {
|
||||
map1_seabed[lat_dec][lon_dec] = std::move(hgt);
|
||||
if (const auto ret = get_lat1(map1_seabed[lat_dec], lon_dec)) {
|
||||
|
||||
// todo: layer configurable
|
||||
if (ret.value() > 0)
|
||||
return 0;
|
||||
|
||||
return ret.value();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user