diff --git a/src/store/mainStore.ts b/src/store/mainStore.ts index 8f56076..a4a9c33 100644 --- a/src/store/mainStore.ts +++ b/src/store/mainStore.ts @@ -251,10 +251,11 @@ export const useMainStore = defineStore('mainStore', { if (!scheduledTrains) return; scheduledTrains.forEach(({ train, checkpointStop }) => { + scenery.scheduledTrains.push({ train, checkpointStop }); + if (uniqueTrainIds.includes(train.id) || train.region != this.region.id) return; scenery.scheduledTrainCount.all += 1; - scenery.scheduledTrains.push({ train, checkpointStop }); if (checkpointStop.confirmed) scenery.scheduledTrainCount.confirmed++; else scenery.scheduledTrainCount.unconfirmed++;