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

Fix issues in BoneCrusher AI #3654

Merged
merged 1 commit into from
Feb 25, 2024
Merged

Fix issues in BoneCrusher AI #3654

merged 1 commit into from
Feb 25, 2024

Conversation

KJeff01
Copy link
Member

@KJeff01 KJeff01 commented Feb 24, 2024

A few global variables were assigned as arrays but were being used as objects later on. Breaking saves.

Various warnings like missing semicolons and variable redeclarations fixed.


Ultimately to ensure BoneCrusher is absolutely saveload safe it would need to just declare vars at the root level and initialize what is necessary inside an init function. Much like what is done with libcampaign, Cobra, SemperFi, etc. It does have an init() function called through eventGameLoaded (which fires after saveload) so maybe for now it won't be a big deal. Perhaps when I or anyone feels like doing a var to let/const conversion process for BoneCrusher it would be a good time to do that.

A few global variables were assigned as arrays but were being used as objects later on. Breaking saves.

Various warnings like missing semicolons and variable redeclarations fixed.
@KJeff01 KJeff01 merged commit 5517171 into Warzone2100:master Feb 25, 2024
37 of 38 checks passed
@KJeff01 KJeff01 deleted the bone branch February 25, 2024 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant