Fix for rapid ViewController fade transitions causing the camera to get "lost."

This commit is contained in:
Aloshi 2014-06-01 19:28:30 -05:00
parent 489298ef26
commit e5e4394eb4

View file

@ -90,7 +90,7 @@ void ViewController::playViewTransition()
target = mCurrentView->getPosition(); target = mCurrentView->getPosition();
// no need to animate, we're not going anywhere (probably goToNextGamelist() or goToPrevGamelist() when there's only 1 system) // no need to animate, we're not going anywhere (probably goToNextGamelist() or goToPrevGamelist() when there's only 1 system)
if(target == -mCamera.translation()) if(target == -mCamera.translation() && !isAnimationPlaying(0))
return; return;
if(Settings::getInstance()->getString("TransitionStyle") == "fade") if(Settings::getInstance()->getString("TransitionStyle") == "fade")