Repository navigation
Conversation
|
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
WalkthroughGameClient and GameLogic replace vector-based ID lookup with hash maps. Drawable and object registration, removal, reset, and lookup now use the hash maps. The drawable cleanup loop declaration and lookup-table comments also change. ChangesID-based lookup storage
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Refactor Merge Risk: ⚪ Minimal · up to No actionable lookup regression was established; the change is mergeable after normal checks. Pre-merge checks ·
|
e888102 to
0405d02
Compare
|
This PR is another attempt to port the Generals hash map code to Zero Hour for
ObjectandDrawable. I copied the Generals code to Zero Hour and discarded the code that was already there (but commented out).This was previously done and reverted because it introduced mismatches. I can reproduce the mismatches with 4fe88de, but not with this branch. This suggests that the change was safe but ran into an uninitialized variable that wasn't discovered yet. I've also tested 2000+ replays with the hash map changes and saw no mismatch because of them.
See commits for (mostly) clean diffs. All Zero Hour changes are ported from Generals.