Repository navigation
bugfix(sideslist): Add the general skirmish sides that Generals maps lack - #3484
tintinhamans wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe change records polygon-trigger chunk versions, detects legacy maps without Zero Hour skirmish sides, conditionally adds missing sides, and warns during LAN, skirmish, and WOL map selection. It also limits the Armored Fury and Scorched Earth exclusions to Zero Hour builds with retail-compatible CRC mode. ChangesMap compatibility
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix · Severity of issue fixed: Medium Sequence Diagram(s)sequenceDiagram
participant SkirmishMapSelectMenuSystem
participant warnIfMapLacksSkirmishSides
participant isGeneralsMapWithoutGeneralSides
participant MessageBox
SkirmishMapSelectMenuSystem->>warnIfMapLacksSkirmishSides: selected map name
warnIfMapLacksSkirmishSides->>isGeneralsMapWithoutGeneralSides: inspect map
isGeneralsMapWithoutGeneralSides-->>warnIfMapLacksSkirmishSides: missing-side result
warnIfMapLacksSkirmishSides->>MessageBox: display warning
Merge Risk: ⚪ Minimal · up to The previously identified stale-version problem is fixed for normal map loading. No actionable merge-blocking risk remains on the established evidence. Pre-merge checks |
|
a654a93 to
b488b9c
Compare
|
b488b9c to
dc8dcda
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Organization UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
af6ce4e8-183e-4d73-a36a-5926446a2e4a
📒 Files selected for processing (9)
Core/GameEngine/Include/GameClient/MapUtil.hCore/GameEngine/Include/GameLogic/PolygonTrigger.hCore/GameEngine/Include/GameLogic/SidesList.hCore/GameEngine/Source/GameClient/MapUtil.cppCore/GameEngine/Source/GameLogic/Map/PolygonTrigger.cppCore/GameEngine/Source/GameLogic/Map/SidesList.cppGeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanMapSelectMenu.cppGeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishMapSelectMenu.cppGeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLMapSelectMenu.cpp
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.
dc8dcda to
f8e2cef
Compare
Closes #1772
Generals maps only have
SkirmishAmerica,SkirmishChinaandSkirmishGLA.Player::initFromDictturns a general AI into a human player with no AI when no map side matches itsSide, so on these maps the generals never move. The 1.03 filter hides Armored Fury and Scorched Earth for this reason.prepareForMP_or_Skirmishnow adds the general sides and teams the way Add Skirmish Players in WorldBuilder does, so the standard skirmish scripts bind to them. Only for maps saved by the Generals WorldBuilder with the three original factions and no general, and only when all nine fit. Behind!RETAIL_COMPATIBLE_CRC, a general that plays desyncs against retail. The 1.03 filter stays in retail builds.The map pickers warn when such a map is selected.
Retail compatible builds never add sides.