bugfix(radar): Show Hero Radar icons in Containers and Tunnels again#2189
Merged
xezon merged 2 commits intoTheSuperHackers:mainfrom Feb 19, 2026
Merged
Conversation
|
| Filename | Overview |
|---|---|
| Core/GameEngine/Source/Common/System/Radar.cpp | Removed hero-specific list handling, cleaned up xfer version compatibility code, simplified object search logic |
| Core/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp | Changed drawIcons to filter heroes from m_localObjectList instead of using separate hero list |
| Generals/Code/GameEngine/Source/Common/RTS/TunnelTracker.cpp | Implemented hero counting in addToContainList, removeFromContain, and loadPostProcess methods |
| Generals/Code/GameEngine/Source/GameLogic/Object/Contain/OpenContain.cpp | Removed hero-specific xfer versioning, simplified loadPostProcess to use addToContainList, fixed typos |
| GeneralsMD/Code/GameEngine/Source/Common/RTS/TunnelTracker.cpp | Implemented hero counting in addToContainList, removeFromContain, and loadPostProcess (matches Generals) |
| GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Contain/OpenContain.cpp | Removed hero-specific xfer versioning, simplified loadPostProcess, fixed typos (matches Generals) |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Radar Draw Icons] --> B{Iterate m_localObjectList}
B --> C{Is obj->isHero?}
C -->|No| B
C -->|Yes| D{Check Hero Type}
D -->|Direct Hero Unit| E[Draw Hero Icon at Unit Position]
D -->|Container with Heroes| F{Check Container Type}
F -->|OpenContain| G[m_heroUnitsContained > 0?]
F -->|TunnelContain| H[TunnelTracker->getHeroUnitsContained > 0?]
G -->|Yes| E
H -->|Yes| E
G -->|No| B
H -->|No| B
E --> B
I[Add to Container] --> J[addToContainList]
J --> K{Is KINDOF_HERO?}
K -->|Yes| L[++m_heroUnitsContained]
K -->|No| M[Done]
L --> M
N[Remove from Container] --> O{Is KINDOF_HERO?}
O -->|Yes| P[--m_heroUnitsContained]
O -->|No| Q[Done]
P --> Q
Last reviewed commit: c91f654
4 tasks
Stubbjax
approved these changes
Feb 18, 2026
Author
|
Replicated in Generals with conflicts |
CookieLandProjects
pushed a commit
to CookieLandProjects/CLP_AI
that referenced
this pull request
Feb 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change will show the Hero Radar icons in Containers and Tunnels again.
Previously we moved hero objects into its own radar object list, but this broke hero icons in containers, because containers are naturally not added in this hero objects list. This change returns to what the original did. Additionally the TunnelTracker also had the hero objects cache added, otherwise it did not work with tunnels.
TODO