File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Contain
Generals/Code/GameEngine/Source/GameLogic/Object/Contain Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,16 @@ UpdateSleepTime HealContain::update( void )
120120 // if we're done healing, we need to remove us from the healing container
121121 if ( doneHealing == TRUE )
122122 {
123+ // TheSuperHackers @bugfix arcticdolphin 07/11/2025 Copy building rally so healed infantry follow it
124+ #if !RETAIL_COMPATIBLE_CRC
125+ ExitInterface* buildingExit = getObject ()->getObjectExitInterface ();
126+ if (buildingExit && buildingExit != static_cast <ExitInterface*>(this ))
127+ {
128+ const Coord3D* rp = buildingExit->getRallyPoint ();
129+ if (rp) { setRallyPoint (rp); }
130+ }
131+ #endif
132+
123133 ExitDoorType exitDoor = reserveDoorForExit (obj->getTemplate (), obj);
124134 if (exitDoor != DOOR_NONE_AVAILABLE)
125135 exitObjectViaDoor ( obj, exitDoor );
Original file line number Diff line number Diff line change @@ -120,6 +120,16 @@ UpdateSleepTime HealContain::update( void )
120120 // if we're done healing, we need to remove us from the healing container
121121 if ( doneHealing == TRUE )
122122 {
123+ // TheSuperHackers @bugfix arcticdolphin 07/11/2025 Copy building rally so healed infantry follow it
124+ #if !RETAIL_COMPATIBLE_CRC
125+ ExitInterface* buildingExit = getObject ()->getObjectExitInterface ();
126+ if (buildingExit && buildingExit != static_cast <ExitInterface*>(this ))
127+ {
128+ const Coord3D* rp = buildingExit->getRallyPoint ();
129+ if (rp) { setRallyPoint (rp); }
130+ }
131+ #endif
132+
123133 ExitDoorType exitDoor = reserveDoorForExit (obj->getTemplate (), obj);
124134 if (exitDoor != DOOR_NONE_AVAILABLE)
125135 exitObjectViaDoor ( obj, exitDoor );
You can’t perform that action at this time.
0 commit comments