mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +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 ) {
|
||||
CG_CheckOrderPending();
|
||||
if (cg_currentSelectedPlayer.integer > 0 && cg_currentSelectedPlayer.integer < numSortedTeamPlayers) {
|
||||
if (cg_currentSelectedPlayer.integer > 0 && cg_currentSelectedPlayer.integer <= numSortedTeamPlayers) {
|
||||
cg_currentSelectedPlayer.integer--;
|
||||
} else {
|
||||
cg_currentSelectedPlayer.integer = numSortedTeamPlayers;
|
||||
|
|
Loading…
Reference in a new issue