-
Notifications
You must be signed in to change notification settings - Fork 117
bugfix: Make healed infantry follow the building rally point #1822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -120,6 +120,16 @@ UpdateSleepTime HealContain::update( void ) | |
| // if we're done healing, we need to remove us from the healing container | ||
| if( doneHealing == TRUE ) | ||
| { | ||
| // TheSuperHackers @bugfix arcticdolphin 07/11/2025 Copy building rally so healed infantry follow it | ||
| #if !RETAIL_COMPATIBLE_CRC | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove indentation for |
||
| ExitInterface* buildingExit = getObject()->getObjectExitInterface(); | ||
| if (buildingExit && buildingExit != static_cast<ExitInterface*>(this)) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the self-check needed here? |
||
| { | ||
| const Coord3D* rp = buildingExit->getRallyPoint(); | ||
| if (rp) { setRallyPoint(rp); } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use if (rp)
setRallyPoint(rp);if (rp)
{
setRallyPoint(rp);
}for readability |
||
| } | ||
| #endif | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove indentation for |
||
|
|
||
| ExitDoorType exitDoor = reserveDoorForExit(obj->getTemplate(), obj); | ||
| if (exitDoor != DOOR_NONE_AVAILABLE) | ||
| exitObjectViaDoor( obj, exitDoor ); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand
The code is not a literal copy from somewhere.
Suggestion: