chore: checkpoints filtering

This commit is contained in:
2024-05-19 23:05:57 +02:00
parent 6901c3d2b4
commit 3ed2c09184
+2 -1
View File
@@ -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++;