-
Notifications
You must be signed in to change notification settings - Fork 2
MISTS: add EXP_MISTS expansion + guard arms for MoP (Four) DBC field renames #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
44e6e10
6e41e4e
a20b446
ea387b6
32740c7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -119,6 +119,8 @@ bool Eluna::OnAreaTrigger(Player* pPlayer, AreaTriggerEntry const* pTrigger) | |
| HookPush(pTrigger->entry); | ||
| #elif defined(ELUNA_MANGOS) && (ELUNA_EXPANSION == EXP_CLASSIC || ELUNA_EXPANSION == EXP_WOTLK) | ||
| HookPush(pTrigger->ID); | ||
| #elif defined(ELUNA_MANGOS) && ELUNA_EXPANSION == EXP_MISTS | ||
| HookPush(pTrigger->ID); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For a Mangos Four/ Useful? React with 👍 / 👎.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the intended cross-repo coupling, not a mismatch. The companion Four core PR renames these DBC fields to their client-exact names — |
||
| #else | ||
| HookPush(pTrigger->id); | ||
| #endif | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defining a distinct
EXP_MISTSvalue means a MoP build no longer compiles asEXP_CATA, but several Mangos code paths still select Cata APIs only via#ifdef CATA; for examplemethods/Mangos/PlayerMethods.hstill falls through toplayer->resetTalentsCost()instead of the Cata/MoPGetNextResetTalentsCost()path when only MISTS is defined. Those remaining CATA-only guards need the same MISTS coverage as the widenedELUNA_EXPANSION >= EXP_CATAchecks, otherwise the new expansion target continues to compile against pre-Cata APIs.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed and fixed. A MoP build defines
MISTS(viaMANGOS_EXP), neverCATA, so the two remaining#ifdef CATAAPI guards fell through to the pre-Cata#else:ResetTalentsCost(PlayerMethods.h) andGetEndTime(BattleGroundMethods.h). Widened both to#if defined(CATA) || defined(MISTS)in32740c7. Both Cata+ APIs (GetNextResetTalentsCost,GetRemainingTime) exist in the Four core, and an incremental build confirms the MISTS arms compile+link. A full sweep of the compiled Eluna surface found these were the only two such sites. (Pre-existing gap —MANGOS_EXP=MISTSpredates this branch — but the fix belongs here.)