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

Added check that weapon has ammo in reload_weapon_hotkey. #391

Merged

Conversation

icosahedral-dragon
Copy link
Contributor

Without this the game would try to reload weapons that did not have ammo, which could cause it to access off the end of the player ammo clips array with strange results.
Addresses issue #384

Without this the game would try to reload weapons that did not have ammo, which could cause it to access off the end of the player ammo clips array with strange results.
@Interrupt
Copy link
Owner

Good find! I assume this means that vanilla system shock for DOS has this same bug?

@Interrupt Interrupt merged commit 00a0590 into Interrupt:master Jan 25, 2022
@icosahedral-dragon
Copy link
Contributor Author

Good find! I assume this means that vanilla system shock for DOS has this same bug?

Well @bangstk found it, I just poked about in the debugger a bit. (I never used that hotkey and I always set the Sparq to max power anyway.) DOS Shock and System Shock "Classic" on Steam both exhibit the bug (not surprisingly since I'm pretty sure they're the exact same thing). So it's an oldie.

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.

2 participants