[map] allow forced always-on-top for highest priorities

This commit is contained in:
Darafei Praliaskouski 2013-04-11 16:22:18 +03:00 committed by Alex Zolotarev
parent 0335273c7c
commit 6e857a6fa7

View file

@ -134,7 +134,7 @@ namespace di
{
double depth = keys[i].m_priority;
if (layer != 0)
if ((layer != 0) && (depth < 19000))
depth = (layer * drule::layer_base_priority) + fmod(depth, drule::layer_base_priority);
if (keys[i].m_type == drule::symbol)