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

Don't place units or statics on destroyed buildings #2816

Conversation

jaj22
Copy link

@jaj22 jaj22 commented Jul 12, 2023

What type of PR is this.

  1. Bug
  2. Change
  3. Enhancement

What have you changed and why?

The Patcom garrison AI code wasn't checking whether buildings were destroyed before placing units on them, which could cause units to fall to their deaths on spawn, or possibly spawn underground in some cases.

Also fixed an oversight in the enemy garrison static placement code where statics could be placed underground on a building destroyed in the current session. Apparently buildings are not set hidden when they're destroyed.

Please specify which Issue this PR Resolves.

closes #XXXX

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.)

@jaj22 jaj22 added the Bug-fix label Jul 12, 2023
@jaj22 jaj22 added this to the 3.3 milestone Jul 12, 2023
@Bob-Murphy Bob-Murphy merged commit 279cc42 into official-antistasi-community:unstable Jul 15, 2023
@Bob-Murphy Bob-Murphy added the Added to changelog Added to changelog label Jul 25, 2023
igorkis-scrts pushed a commit to igorkis-scrts/A3-Antistasi-Plus that referenced this pull request Aug 8, 2023
…arrison-on-dead-buildings

Don't place units or statics on destroyed buildings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants