Upon reaching maximum level, the XP value gets clamped to maximum level XP value, and that caused entire for loop to fall through and return 1, permanently resetting the player level to 1.
It now returns correct level when player reached the maximum.
Upon reaching maximum level, the XP value gets clamped to maximum level XP value, and that caused entire for loop to fall through and return
1
, permanently resetting the player level to 1. It now returns correct level when player reached the maximum.Same bug was present in sniper map progression.