mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
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:
parent
2091a2e2d5
commit
0a19ae0306
1 changed files with 8 additions and 0 deletions
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue