Merge with develop

--HG--
branch : compatibility-develop
hg/compatibility-develop
Nimetu 7 years ago
commit 0a3f2744b8

@ -1226,6 +1226,12 @@ namespace NLGUI
if(hReal <= maxHReal) if(hReal <= maxHReal)
return; return;
if (_TargetStepY > 1)
{
sint sign = (0 < dy) - (dy < 0);
dy = sign * max(1, (dy / _TargetStepY)) * _TargetStepY;
}
// compute the new ofsY. // compute the new ofsY.
sint32 ofsY= _Target->getOfsY(); sint32 ofsY= _Target->getOfsY();
ofsY+= dy; ofsY+= dy;

@ -2617,6 +2617,10 @@ void CGroupMap::updateUserLandMarks()
worldToMap(mapPos, _CurContinent->UserLandMarks[k].Pos); worldToMap(mapPos, _CurContinent->UserLandMarks[k].Pos);
addLandMark(_UserLM, mapPos, _CurContinent->UserLandMarks[k].Title, getUserLandMarkOptions(k)); addLandMark(_UserLM, mapPos, _CurContinent->UserLandMarks[k].Title, getUserLandMarkOptions(k));
// hide landmark if not matching filter
if (!filterLandmark(_CurContinent->UserLandMarks[k].Title))
_UserLM.back()->setActive(false);
} }
invalidateCoords(); invalidateCoords();

Loading…
Cancel
Save