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

Balloon should look for an empty spot in the item array instead of getting shoved in the last spot #123

Open
Fenyx4 opened this issue Sep 7, 2021 · 0 comments

Comments

@Fenyx4
Copy link
Owner

Fenyx4 commented Sep 7, 2021

The balloon gets spawned into the hardcoded 31st location in the array.
https://github.com/ergonomy-joe/u4-decompiled/blob/1964651295232b0ca39afafef254541a406eb66b/SRC/U4_MAP.C#L125

The array fills up from the back so 31 is almost always going to be full... And maybe full of something important like a boat.
https://github.com/ergonomy-joe/u4-decompiled/blob/1964651295232b0ca39afafef254541a406eb66b/SRC/U4_COMBC.C#L348-L360

So instead of going into the hardcoded 31st location call C_8228 to get a value.

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

No branches or pull requests

1 participant