V0.11.0 alpha2 fix codex #61
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
umpire274/bs_scoring!61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "v0.11.0-alpha2-fix_codex"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
b87fca919bℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@ -73,7 +87,13 @@ pub fn run_play_ball_engine(if !pas.is_empty() {has_events = true;run_play_ball_enginenow classifies every non-"steal"runner_movementsrow ascomposite_movements, andreplay_plate_appearances_and_logapplies all of them throughapply_composite_state. That unintentionally re-applies normal PA movements ("walk","hit_auto","hit_override") that were already applied byapply_plate_appearance_row, so resumed games can double-count scoring movements (especially rows ending atHOME) and corrupt replayed state.Useful? React with 👍 / 👎.
When replaying composite rows that end at
HOME, this branch increments onlystate.score.away/homeand skipsaway_innings/home_innings. That makes resumed state inconsistent with live scoring (add_runs_to_score) and can show mismatched totals vs inning-by-inning lines in the TUI after FC/composite scoring plays.Useful? React with 👍 / 👎.