Skip to content

fix: master-chief build - restore the Halo CE and Halo 2 HUD offsets lost merging #43 - #45

Closed
kirklandsig wants to merge 1 commit into
megabitt01:master-chieffrom
kirklandsig:upstream/fix-hud-offsets
Closed

kirklandsig wants to merge 1 commit into
megabitt01:master-chieffrom
kirklandsig:upstream/fix-hud-offsets

Conversation

@kirklandsig

Copy link
Copy Markdown

master-chief doesn't compile since #43 went in:

src\mcc\module\CModule.cpp(195,53): error C2065: 'OFFSET_HALO2_PF_HUD_ASPECT_LOCK': undeclared identifier

When master-chief (with #44) was merged into #43, the conflicts in the Halo CE and Halo 2 offset headers kept #44's side only. That dropped #43's offsets and byte patterns there, but the HUD code that uses them stayed. #43's CI run on that merge commit (0f5a001) shows the same error.

This puts both blocks back, as the two PRs had them. Only lines are added (+34), and the values and patterns are #43's:

  • offset_halo1.h / patterns_halo1.inc: hud_calculate_point, the HUD viewport bounds and the drawing player (3 offsets).
  • offset_halo2.h / patterns_halo2.inc: the "HUD anchor: Centered" je and global, the drawing player, the HUD view bounds and the offset unit scale (5 offsets).

With this, the tree is the same as merging the two PR branches with both blocks kept.

Tested: WTSAPI32 and offset_test build clean, and check_gates.py passes. No game run, since it only restores lines that were in #43.

🤖 Generated with Claude Code

…01#43

Merging master-chief into megabitt01#43 (after megabitt01#44) resolved the conflicts in the
Halo CE and Halo 2 offset headers by keeping megabitt01#44's side only, so the
per-player HUD's offsets and byte patterns there were dropped while the
code using them stayed: master-chief stopped compiling (C2065
'OFFSET_HALO2_PF_HUD_ASPECT_LOCK' in CModule.cpp, and the HUD files).

Both blocks are kept now, as the two PRs had them:
- offset_halo1.h / patterns_halo1.inc: hud_calculate_point, the HUD
  viewport bounds and the drawing player (3);
- offset_halo2.h / patterns_halo2.inc: the "HUD anchor: Centered" je and
  global, the drawing player, the HUD view bounds and the offset unit
  scale (5).
Only lines are added; the values and patterns are megabitt01#43's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kirklandsig

Copy link
Copy Markdown
Author

Closing: #46 carried this commit, and master-chief (cea8227) builds again. Thanks!

@kirklandsig
kirklandsig deleted the upstream/fix-hud-offsets branch November 20, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant