mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-14 00:10:39 +00:00
Make Team Arena prevTeamMember command loop around player list
Team Arena HUD's team member info box can be cycled through using nextTeamMember and prevTeamMember commands. nextTeamMember command loops around when end of list is reached but prevTeamMember command got stuck at last entry in list (team overview).
This commit is contained in:
parent
302f12b8f6
commit
09166ba05e
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ void CG_SelectNextPlayer( void ) {
|
||||||
|
|
||||||
void CG_SelectPrevPlayer( void ) {
|
void CG_SelectPrevPlayer( void ) {
|
||||||
CG_CheckOrderPending();
|
CG_CheckOrderPending();
|
||||||
if (cg_currentSelectedPlayer.integer > 0 && cg_currentSelectedPlayer.integer < numSortedTeamPlayers) {
|
if (cg_currentSelectedPlayer.integer > 0 && cg_currentSelectedPlayer.integer <= numSortedTeamPlayers) {
|
||||||
cg_currentSelectedPlayer.integer--;
|
cg_currentSelectedPlayer.integer--;
|
||||||
} else {
|
} else {
|
||||||
cg_currentSelectedPlayer.integer = numSortedTeamPlayers;
|
cg_currentSelectedPlayer.integer = numSortedTeamPlayers;
|
||||||
|
|
Loading…
Reference in a new issue