Conversation
c6b3c56 to
5d919e8
Compare
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. Walkthrough
ChangesDockUpdate save transfer
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: 🟡 Moderate · up to Loading an older save and saving it again can preserve incorrect dock approach behavior. Correct the legacy-load path before merging, unless this risk is explicitly accepted. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 69109dbf-5afc-4b1b-98e3-9ea9aeb4ae68
📒 Files selected for processing (2)
Generals/Code/GameEngine/Source/GameLogic/Object/Update/DockUpdate/DockUpdate.cppGeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/DockUpdate/DockUpdate.cpp
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
| /** Xfer Method | ||
| * Version Info: | ||
| * 1: Initial version | ||
| * 2: Save the approach position bone count. */ |
There was a problem hiding this comment.
We use a TSH comment for xfer changes (see other xfer changes for reference if needed).
|
| xfer->xferCoord3D( &m_exitPosition ); | ||
|
|
||
| // # approach positions | ||
| xfer->xferInt( &m_numberApproachPositions ); |
There was a problem hiding this comment.
I suggest add a comment behind m_numberApproachPositionBones in the header that it needs no xfer serialization.
Or add it somewhere here if that is a better fit.
Closes #3150. Extracted from #2152.
Loading a save loses the dock approach bone count, but keeps the flag saying the positions are already loaded. Supply docks and buildings can then skip the approach offset toward arriving workers or trucks, slowing gathering across repeated trips.
Now calls
loadDockPositions()after loading when the positions were already loaded. This restores the missing count in existing saves without changing the save format. Applied to Generals and Zero Hour.Tested on seven Zero Hour saves using the local integration build. All 41 loaded docks, including 13 occupied docks, retained identical docking positions after recomputation and recovered the missing count.
Related: #3117 fixes another missing field writeback in the same function.