In multiplayer steam sprint games, the train was displaying passengers from all players (including inactive ones) instead of only showing passengers belonging to the first active player. The issue was that boardedPassengers was filtering for any claimed passenger, not checking if the claiming player was still active. Changes to SteamTrainJourney.tsx: - Filter boardedPassengers to only include passengers where claimedBy matches the firstActivePlayer's ID - Add firstActivePlayer.id to the useMemo dependency array - Update comment to clarify filtering logic Now the train correctly displays only the first active player's passengers in their train cars, matching the player emoji shown as the engineer. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .claude | ||
| .storybook | ||
| __tests__ | ||
| data | ||
| docs | ||
| drizzle | ||
| e2e | ||
| public | ||
| scripts | ||
| src | ||
| .gitignore | ||
| CARD_SORTING_PORT_PLAN.md | ||
| COMPLEMENT_RACE_PORT_PLAN.md | ||
| DEVELOPMENT_STANDARDS.md | ||
| LINTING.md | ||
| biome.jsonc | ||
| drizzle.config.ts | ||
| eslint.config.js | ||
| next-env.d.ts | ||
| next.config.js | ||
| package.json | ||
| panda.config.ts | ||
| playwright.config.ts | ||
| pnpm-lock.yaml | ||
| server.js | ||
| svg-processing-test.js | ||
| test-arcade-api.sh | ||
| test-flashcards-final.pdf | ||
| test-flashcards.pdf | ||
| test-simplified.pdf | ||
| test_fullscreen_persistence.html | ||
| test_panda_simple.html | ||
| tsconfig.json | ||
| tsconfig.server.json | ||
| vitest.config.ts | ||