Fixed build errors from merge

Follow-up to cf33edf16d.
This commit is contained in:
Minh Nguyễn
2015-05-01 00:37:51 -04:00
parent cf33edf16d
commit 5e6bf19144

View File

@@ -739,7 +739,7 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
if ( ! CGPointEqualToPoint(velocity, CGPointZero))
{
CGPoint offset = CGPointMake(velocity.x * duration / 4, velocity.y * duration / 4);
mbglMap->moveBy(offset.x, offset.y, secondsAsDuration(duration));
_mbglMap->moveBy(offset.x, offset.y, secondsAsDuration(duration));
}
_mbglMap->setGestureInProgress(false);
@@ -821,7 +821,7 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
newScale += scale / (velocity * duration) * 0.1;
}
if (newScale <= 0 || log2(newScale) < mbglMap->getMinZoom())
if (newScale <= 0 || log2(newScale) < _mbglMap->getMinZoom())
{
velocity = 0;
}