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

Hearts amount accumulating through game #17

Closed
Olmancketslat opened this issue Jul 1, 2017 · 1 comment
Closed

Hearts amount accumulating through game #17

Olmancketslat opened this issue Jul 1, 2017 · 1 comment

Comments

@Olmancketslat
Copy link
Collaborator

Hearts will not correctly be set to 0 at some point.

After completing countries game and switching back to continent select to select new continent for quiz, remaining hearts will be added to score with 120 points per heart. After that hearts should reset to 0 before starting quiz.

But after starting quiz and answering 2 questions correctly, the amount of hearts is the sum of ALL accumulated hearts till that point.

@Olmancketslat
Copy link
Collaborator Author

Olmancketslat commented Jul 1, 2017

Fixed by setting
$_SESSION["rightAnswer"] = 0;
in getQuestions.php after $_SESSION["questionCounter"] >=6 check
(end of quiz)

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

No branches or pull requests

1 participant