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 auto-unstick feature #35

Merged
merged 2 commits into from
Mar 30, 2016
Merged

Fix auto-unstick feature #35

merged 2 commits into from
Mar 30, 2016

Conversation

TomyLobo
Copy link
Collaborator

The source contains a feature (da_auto_unstick) which actually works quite well in unsticking players, as long as there is only one player on the server.

As soon as another player (or a bot) is on the player, it breaks.
This happens because certain state is stored in what appears to be a global variable.

My fix moves that to the individual CDAPlayer instances.

Same changes as #29 but retargeted to the develop branch.

@TomyLobo TomyLobo force-pushed the develop branch 2 times, most recently from 5e4152f to ba8390e Compare March 27, 2016 01:50
@BSVino
Copy link
Owner

BSVino commented Mar 29, 2016

I've been burned by putting stuff in GameMovement before. I keep forgetting that there's only one for all players. Maybe put a comment in there to prevent the same error in the future?

Ship it.

@TomyLobo
Copy link
Collaborator Author

Like so? :)

CDAGameMovement appears to have a single global instance.
This causes the da_auto_unstick feature to break with any player number greater than 1, because there usually is at least one player that is not stuck.
@BSVino
Copy link
Owner

BSVino commented Mar 30, 2016

Cool. Ship it.

@TomyLobo TomyLobo merged commit ab37427 into BSVino:develop Mar 30, 2016
@TomyLobo TomyLobo deleted the fix-unstick branch March 30, 2016 10:57
@TomyLobo TomyLobo added this to the v1.2.1 milestone Apr 3, 2016
@TomyLobo TomyLobo changed the title Fix da_auto_unstick Fix auto-unstick feature Apr 3, 2016
TomyLobo added a commit that referenced this pull request Apr 20, 2016
shmopaloppa pushed a commit to shmopaloppa/DoubleAction that referenced this pull request Sep 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants