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 flagreturn #542

Merged
merged 1 commit into from
Aug 16, 2019
Merged

Fix flagreturn #542

merged 1 commit into from
Aug 16, 2019

Conversation

1AmYF
Copy link
Contributor

@1AmYF 1AmYF commented Aug 14, 2019

Fixes #505, flagreturn got broken in #325.

if protocol.game_mode != CTF_MODE:

protocol.game_mode returns None when called at that time. Seems that check generally wants to prevent the server from breaking when someone uses the script together with a TC-based gamemode. I moved the check to the 2 critical parts of the script so it still won't break with TC (maybe a more elegant way to fix it exists though).

Copy link
Member

@NotAFile NotAFile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems ok

@godwhoa godwhoa merged commit adf6177 into piqueserver:master Aug 16, 2019
@feikname feikname added the PR: solve-bug This PR aims to solve a bug label Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: solve-bug This PR aims to solve a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flagreturn not working
4 participants