fix: remove duplicate CAR_SPACING and MAX_CARS declarations

This commit is contained in:
Thomas Hallock 2025-10-01 09:09:34 -05:00
parent 96782b0e7a
commit e704a28524
1 changed files with 0 additions and 2 deletions

View File

@ -159,8 +159,6 @@ export function useSteamJourney() {
// Check for route completion (entire train exits tunnel) // Check for route completion (entire train exits tunnel)
// With 5 cars at 7% spacing, last car is at trainPosition - 35% // With 5 cars at 7% spacing, last car is at trainPosition - 35%
// So wait until trainPosition >= 135% for entire train to exit // So wait until trainPosition >= 135% for entire train to exit
const MAX_CARS = 5
const CAR_SPACING = 7
const ENTIRE_TRAIN_EXIT_THRESHOLD = 100 + (MAX_CARS * CAR_SPACING) // 135% const ENTIRE_TRAIN_EXIT_THRESHOLD = 100 + (MAX_CARS * CAR_SPACING) // 135%
if (trainPosition >= ENTIRE_TRAIN_EXIT_THRESHOLD && state.trainPosition < ENTIRE_TRAIN_EXIT_THRESHOLD) { if (trainPosition >= ENTIRE_TRAIN_EXIT_THRESHOLD && state.trainPosition < ENTIRE_TRAIN_EXIT_THRESHOLD) {