From f9e202db4592ea42eda44ce96a6f86f8fb4377c6 Mon Sep 17 00:00:00 2001 From: Lev Dragunov Date: Fri, 11 Dec 2015 23:28:04 +0300 Subject: [PATCH] Drape overaly depth normalization fix. --- drape/overlay_handle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drape/overlay_handle.cpp b/drape/overlay_handle.cpp index 92150dc112..c7cc6e4926 100644 --- a/drape/overlay_handle.cpp +++ b/drape/overlay_handle.cpp @@ -248,7 +248,7 @@ uint64_t CalculateOverlayPriority(int minZoomLevel, uint8_t rank, float depth) float const kMinDepth = -100000.0f; float const kMaxDepth = 100000.0f; - float const d = my::clamp(depth, kMinDepth, kMaxDepth) + kMaxDepth; + float const d = my::clamp(depth, kMinDepth, kMaxDepth) - kMinDepth; uint32_t const priority = static_cast(d); return (static_cast(minZoom) << 56) |