Skip to content

Conversation

@bobtista
Copy link

@bobtista bobtista commented Oct 31, 2025

Addresses issue #1343

When AI buildings finished construction, they were incorrectly restored to their BuildListInfo initial health value (default 100%, can be set in WorldBuilder)

The BuildListInfo::m_health field is still used for its intended purpose: setting initial health on pre-placed buildings. It just no longer incorrectly applies to buildings under construction.

Note: This change causes mismatches with retail, so it's behind flags.

Tested: The fix works (with RETAIL_COMPATIBILE_CRC and RETAIL_COMPATIBLE_BUG flags set)

@bobtista bobtista force-pushed the bobtista/fix-ai-building-scaffold-health branch from 41f2e5c to 2029868 Compare November 1, 2025 00:05
@bobtista bobtista force-pushed the bobtista/fix-ai-building-scaffold-health branch from 2029868 to ab9b554 Compare November 1, 2025 15:40
@bobtista bobtista force-pushed the bobtista/fix-ai-building-scaffold-health branch from ab9b554 to 56e1f5b Compare November 3, 2025 20:11
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.

2 participants