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

Trophy Icon Fix #9

Open
wants to merge 2 commits into
base: production
Choose a base branch
from
Open

Conversation

Penlo
Copy link

@Penlo Penlo commented Aug 22, 2023

Description:

This pull request addresses the issue where trophy icons were displayed for the top 3 players on each page of the view_map.php file, rather than the top 3 players overall for the map.

Changes:

  1. Modified the initialization of the ranking counter variable x to account for the current page number. This ensures that x starts at the correct rank for each page.
  2. The logic for displaying the trophy icon remains conditional based on x, but with the adjusted initialization, only the top 3 players overall will receive the trophy icon.

This fix is for issue: #5

Penlo added 2 commits August 22, 2023 10:54
Fixed an issue with the logic where the trophy icon was being applied for the top 3 players on each page rather than the top 3 players for the map overall
@Penlo
Copy link
Author

Penlo commented Aug 22, 2023

@sneak-it Let me know if you want me to reopen and push the changes to a different branch.

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

Successfully merging this pull request may close these issues.

1 participant