Skip to content
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

minor resourcecheck old code cleanup #2627

Conversation

igorkis-scrts
Copy link

What type of PR is this.

  1. Bug
  2. Change
  3. Enhancement

What have you changed and why?

Information:
Seems to be that fn_resourcecheck uses leftover Barbolani's code that no longer exists/used anymore (statusAct nowhere to be found in the current state of codebase) - seems that at some point there were armed CIVILIAN-side, uh, civilians, that required special cleanup on each resource tick.
So, this PR replaces this code with simple post-mortem call which is used everywhere in same cases. Also, it will make resource tick a little bit faster under certain circumstances as it will no longer iterate through allUnits.

Please specify which Issue this PR Resolves.

Please verify the following and ensure all checks are completed.

  1. Have you loaded the mission in LAN host?
  2. Have you loaded the mission on a dedicated server?

Is further testing or are further changes required?

  1. No
  2. Yes (Please provide further detail below.)

How can the changes be tested?

@jaj22
Copy link

jaj22 commented Jan 28, 2023

Were there any functional changes in civInit aside from the postMortem call?

@jaj22 jaj22 added the Refactor This relates to the quality or health of the code label Jan 28, 2023
@igorkis-scrts
Copy link
Author

Nope, it's just a light refactoring of that particular function + postmortem call.

@Bob-Murphy Bob-Murphy added this to the 3.2 milestone Feb 1, 2023
@Bob-Murphy
Copy link

@igorkis-scrts merge conflicts

@Bob-Murphy Bob-Murphy added the Merge conflicts Please fix label Feb 1, 2023
…eanup

# Conflicts:
#	A3A/addons/core/functions/CREATE/fn_CIVinit.sqf
@igorkis-scrts
Copy link
Author

@Bob-Murphy
Done.

@Bob-Murphy Bob-Murphy merged commit f447dfb into official-antistasi-community:unstable Feb 16, 2023
@igorkis-scrts igorkis-scrts deleted the feature/resourcecheck-little-cleanup branch February 16, 2023 18:16
@Bob-Murphy Bob-Murphy added the Added to changelog Added to changelog label May 8, 2023
igorkis-scrts added a commit to igorkis-scrts/A3-Antistasi-Plus that referenced this pull request Aug 8, 2023
* minor resourcecheck old code cleanup

* getPosAtl, switch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Added to changelog Added to changelog Ready for merge Refactor This relates to the quality or health of the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants