[iortcw] 86/95: All: Fix levelshot displayed in server browser
Simon McVittie
smcv at debian.org
Fri Sep 8 10:42:26 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to tag 1.51
in repository iortcw.
commit 0c9e8e36af23ecd1470e4a2f875584131725f2b5
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date: Sat Jun 3 11:05:50 2017 -0400
All: Fix levelshot displayed in server browser
Unused in SP
---
MP/code/ui/ui_main.c | 8 ++++++++
SP/code/ui/ui_main.c | 8 ++++++++
2 files changed, 16 insertions(+)
diff --git a/MP/code/ui/ui_main.c b/MP/code/ui/ui_main.c
index db53177..b4c0936 100644
--- a/MP/code/ui/ui_main.c
+++ b/MP/code/ui/ui_main.c
@@ -3432,6 +3432,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 );
}
@@ -5287,6 +5290,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 );
+ }
}
/*
diff --git a/SP/code/ui/ui_main.c b/SP/code/ui/ui_main.c
index d430649..cbe4262 100644
--- a/SP/code/ui/ui_main.c
+++ b/SP/code/ui/ui_main.c
@@ -3477,6 +3477,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 );
}
@@ -5190,6 +5193,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/iortcw.git
More information about the Pkg-games-commits
mailing list