-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add restrictions in cmd start and stop vote #23
base: master
Are you sure you want to change the base?
Conversation
@Mistrick how do you think, maybe add a console message for player? |
@@ -240,6 +244,10 @@ public concmd_startvote(id, level, cid) | |||
} | |||
public concmd_stopvote(id, level, cid) | |||
{ | |||
if(is_vote_finished()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is_vote_finished()
-> !is_vote_started()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why
@@ -227,6 +227,10 @@ restore_limits() | |||
} | |||
public concmd_startvote(id, level, cid) | |||
{ | |||
if(is_vote_started() || is_vote_finished() || is_vote_will_in_next_round()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вынеси is_vote_started()
в отдельное условие.
Для is_vote_finished() || is_vote_will_in_next_round()
добавь квар.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Что должен делать квар?
We need to add restrictions in cmd start and stop vote. Now they can cause bugs.
For example: the voting is starts in new round. If now make
mapm_stop_vote
, thenmp_timelimit
will stay "0"