[GAME][ALL] Earn XP for non-active class


(0xT1) #1

Bug: a player can earn XP on a class he isn’t actively using by ‘selecting’ it while still alive
Game modes: all

Steps to reproduce:
1- Enter a game and select the class bound to F1 to play
2-While alive, press F2 to select a different class to spawn with
3-Continue playing and gaining XP while using class bound to F1
4-When dead, press F1 so you spawn back into the original class (vs F2 which you had selected while alive)
5-When the game is over, all your XP will be given to class F2 even though you only played as class F1

Expected behaviour: XP should be granted to the class you play as while alive
Current behaviour: XP is granted to the class you have selected to spawn as, not the class you’re using in-game