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

Restart specatator display if player in unitList #3147

Merged
merged 1 commit into from
Jan 19, 2016
Merged

Conversation

PabstMirror
Copy link
Contributor

Possible fix for #2677

I think the core problem is that voiperr's demo mission does setSpectator before calling stage.
SetSpectator updates the unitList that has the player in it.

This PR is really just a bandAid that restarts the display when they are called out of order.

@kymckay kymckay added the kind/bug-fix Release Notes: **FIXED:** label Jan 12, 2016
@kymckay
Copy link
Member

kymckay commented Jan 12, 2016

Good catch, I'm thinking about reducing the delay between list updates so might remove the display restart in a later iteration.

@voiperr
Copy link
Contributor

voiperr commented Jan 12, 2016

If there is a specific order to invoking those commands to work safely, the documentation should reflect that. Or, have a third function that executes the 2 functions properly from one call.

@kymckay
Copy link
Member

kymckay commented Jan 12, 2016

I mean...the whole point of this PR is that there isn't a specific order 😛

@thojkooi thojkooi added this to the 3.5.0 milestone Jan 19, 2016
@thojkooi
Copy link
Contributor

Merge?

kymckay added a commit that referenced this pull request Jan 19, 2016
Restart specatator display if player in unitList
@kymckay kymckay merged commit ca5f6df into master Jan 19, 2016
@kymckay kymckay deleted the spectatorBandAid branch January 19, 2016 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-fix Release Notes: **FIXED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants