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

Rapid-cue-switch crash bug mitigation #201

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xenimax
Copy link

@xenimax xenimax commented Sep 19, 2024

Mitigation for #200

Prevent a crash when the player manages to arm the cue before their turn is up with the tip inside the cue ball, resulting in invalid location data. Ensures contents of relevant Sqrt functions is >= 0, and that stale location data isn't carried over on the first frame of the turn.

Sets previous frame cue tip position to current position on local turn start.  Prevents the ball from being launched halfway across the map  if the player manages to arm the cue with the cue tip already touching the cue ball.
Checks contents of Sqrt calculations to ensure they are >= 0. 
Prevents a VRchat crash in the event that a player manages to arm the cue with the tip far enough inside the ball to create an invalid state.
@CLAassistant
Copy link

CLAassistant commented Sep 19, 2024

CLA assistant check
All committers have signed the CLA.

@xenimax xenimax changed the title Rapid-cue-switch crash bug fix Rapid-cue-switch crash bug mitigation Sep 19, 2024
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