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

Not all active players are displayed in Game Over screen #11

Closed
hvlds opened this issue Dec 30, 2020 · 1 comment
Closed

Not all active players are displayed in Game Over screen #11

hvlds opened this issue Dec 30, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@hvlds
Copy link
Owner

hvlds commented Dec 30, 2020

Players with the same amount of points are overrided in the Map DS with all the results. Replace it with an alternative that lets save more than one element with the same key or simply replace it with a vector of pairs.

@hvlds hvlds added the bug Something isn't working label Dec 30, 2020
@hvlds
Copy link
Owner Author

hvlds commented Dec 31, 2020

A solution could be to replace the std::map with a std::multimap. A multimap can store more than one value per key.

@hvlds hvlds self-assigned this Jan 3, 2021
@hvlds hvlds closed this as completed in 515cecd Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant