1
0
Fork 0

Approaches can be slewed if there are exactly four.

This commit is contained in:
Dave 'Gizmo' Gymer 2020-05-13 16:05:26 +01:00 committed by Jonathan Redpath
parent 09f436d6ea
commit 31e5dd3697

View file

@ -513,7 +513,7 @@ var arrivalPage = {
if (me.activePage == 0) {
if (me.enableScrollApproach) {
me.scrollApproach += 1;
if (me.scrollApproach > size(me.approaches) - 4) {
if (me.scrollApproach > size(me.approaches) - 3) {
me.scrollApproach = 0;
}
me.updateApproaches();
@ -539,7 +539,7 @@ var arrivalPage = {
if (me.enableScrollApproach) {
me.scrollApproach -= 1;
if (me.scrollApproach < 0) {
me.scrollApproach = size(me.approaches) - 4;
me.scrollApproach = size(me.approaches) - 3;
}
me.updateApproaches();
}