mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Fixed an issue where slide transitions would sometimes be animated diagonally.
This commit is contained in:
parent
c95351d94c
commit
4481f7e329
|
@ -415,8 +415,8 @@ void ViewController::goToGameList(SystemData* system)
|
||||||
|
|
||||||
// Find if we're wrapping around the first and last systems, which requires the gamelist
|
// Find if we're wrapping around the first and last systems, which requires the gamelist
|
||||||
// to be moved in order to avoid weird camera movements. This is only needed for the
|
// to be moved in order to avoid weird camera movements. This is only needed for the
|
||||||
// slide transition style though.
|
// slide transition style.
|
||||||
if (mState.viewing == GAME_LIST && slideTransitions) {
|
if (mState.viewing == GAME_LIST && SystemData::sSystemVector.size() > 1 && slideTransitions) {
|
||||||
if (SystemData::sSystemVector.front() == mState.getSystem()) {
|
if (SystemData::sSystemVector.front() == mState.getSystem()) {
|
||||||
if (SystemData::sSystemVector.back() == system)
|
if (SystemData::sSystemVector.back() == system)
|
||||||
wrapFirstToLast = true;
|
wrapFirstToLast = true;
|
||||||
|
|
Loading…
Reference in a new issue