Fixed a ViewController issue where the camera was reported as moving when it wasn't.

This commit is contained in:
Leon Styhre 2021-03-20 13:18:47 +01:00
parent e3f67b26c3
commit b87a1c5784

View file

@ -258,8 +258,8 @@ void ViewController::ReloadAndGoToStart()
bool ViewController::isCameraMoving()
{
if (mCurrentView) {
if (mCamera.r3().x() != -mCurrentView->getPosition().x() ||
mCamera.r3().y() != -mCurrentView->getPosition().y())
if (mCamera.r3().x() - -mCurrentView->getPosition().x() != 0 ||
mCamera.r3().y() - -mCurrentView->getPosition().y() != 0)
return true;
}
return false;