[ioquake3] 77/136: Fix levelshot displayed in Team Arena server browser
Simon McVittie
smcv at debian.org
Thu Jun 15 09:09:12 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository ioquake3.
commit 0a19ae0306165ada0fe8e04b897c4869b6209046
Author: Zack Middleton <zack at cloemail.com>
Date: Thu Jun 1 18:03:22 2017 -0500
Fix levelshot displayed in Team Arena server browser
Levelshot was not updated when server list was initially loaded or
server list was sorted.
---
code/ui/ui_main.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/code/ui/ui_main.c b/code/ui/ui_main.c
index 578d33d..4fbe6cb 100644
--- a/code/ui/ui_main.c
+++ b/code/ui/ui_main.c
@@ -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 );
+ }
}
/*
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list