Fix levelshot displayed in Team Arena server browser

Levelshot was not updated when server list was initially loaded or
server list was sorted.
This commit is contained in:
Zack Middleton 2017-06-01 18:03:22 -05:00
parent 2091a2e2d5
commit 0a19ae0306

View file

@ -2742,6 +2742,9 @@ void UI_ServersSort(int column, qboolean force) {
uiInfo.serverStatus.sortKey = column;
qsort( &uiInfo.serverStatus.displayServers[0], uiInfo.serverStatus.numDisplayServers, sizeof(int), UI_ServersQsortCompare);
// update displayed levelshot
UI_FeederSelection( FEEDER_SERVERS, uiInfo.serverStatus.currentServer );
}
/*
@ -3656,6 +3659,11 @@ static void UI_InsertServerIntoDisplayList(int num, int position) {
uiInfo.serverStatus.displayServers[i] = uiInfo.serverStatus.displayServers[i-1];
}
uiInfo.serverStatus.displayServers[position] = num;
// update displayed levelshot
if ( position == uiInfo.serverStatus.currentServer ) {
UI_FeederSelection( FEEDER_SERVERS, uiInfo.serverStatus.currentServer );
}
}
/*