Skip to content

fix(contain): Fix compile errors with RETAIL_COMPATIBLE_CRC 0#1411

Merged
xezon merged 1 commit into
TheSuperHackers:mainfrom
xezon:xezon/fix-processdamagetocontained
Aug 3, 2025
Merged

fix(contain): Fix compile errors with RETAIL_COMPATIBLE_CRC 0#1411
xezon merged 1 commit into
TheSuperHackers:mainfrom
xezon:xezon/fix-processdamagetocontained

Conversation

@xezon

@xezon xezon commented Aug 3, 2025

Copy link
Copy Markdown

This fixes the compile errors in Generals' OpenContain::processDamageToContained with RETAIL_COMPATIBLE_CRC 0.

@xezon xezon added Minor Severity: Minor < Major < Critical < Blocker Build Anything related to building, compiling Gen Relates to Generals ThisProject The issue was introduced by this project, or this task is specific to this project Fix Is fixing something, but is not user facing labels Aug 3, 2025
DamageInfo damageInfo;
damageInfo.in.m_damageType = DAMAGE_UNRESISTABLE;
damageInfo.in.m_deathType = data->m_isBurnedDeathToUnits ? DEATH_BURNED : DEATH_NORMAL;
damageInfo.in.m_deathType = DEATH_BURNED;

@Mauller Mauller Aug 3, 2025

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks like it alters behaviour, is the damage always set to true for burned to death?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change seems correct - damageInfo.in.m_deathType = DEATH_BURNED; was the original line in Generals. I gather the non-retail compatible block introduced here in #1019 was copied from the Zero Hour version.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes the compile errors happened because I just slapped the diff to Generals without checking if it is ABI compatible.

@Mauller Mauller left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@xezon xezon merged commit f70794d into TheSuperHackers:main Aug 3, 2025
9 checks passed
@xezon xezon deleted the xezon/fix-processdamagetocontained branch August 3, 2025 10:35
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Nov 10, 2025
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build Anything related to building, compiling Fix Is fixing something, but is not user facing Gen Relates to Generals Minor Severity: Minor < Major < Critical < Blocker ThisProject The issue was introduced by this project, or this task is specific to this project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants