aboutsummaryrefslogtreecommitdiffstats
path: root/code/q3_ui
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-08-23 00:22:20 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-08-23 00:22:20 +0000
commit3ac0cab7a7a47a07b71755c59bab24e0b70088bd (patch)
tree08f539ee044c124f4878c7a945922e4c59e99fcd /code/q3_ui
parent37c20d0ddfb0b25296cabe9755231ceb2b43dedd (diff)
downloadioquake3-aero-3ac0cab7a7a47a07b71755c59bab24e0b70088bd.tar.gz
ioquake3-aero-3ac0cab7a7a47a07b71755c59bab24e0b70088bd.zip
* (bug 3076) Map cycle breaks on empty or bot only servers (misanthropia)
* (bug 3303) Removal of never compiled code from cgame drawing functions (beast <info@dbwatersports.com>) * (bug 3297) Add missing limit to Q3 UI server info (beast <info@dbwatersports.com>) * (bug 3029) Fix to shader hash table being overpopulated (identified by Stefan "#@" Langer <raute_at@gmx.de>) git-svn-id: svn://svn.icculus.org/quake3/trunk@1129 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/q3_ui')
-rw-r--r--code/q3_ui/ui_serverinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/code/q3_ui/ui_serverinfo.c b/code/q3_ui/ui_serverinfo.c
index 065b957..8cde1cc 100644
--- a/code/q3_ui/ui_serverinfo.c
+++ b/code/q3_ui/ui_serverinfo.c
@@ -128,11 +128,11 @@ static void ServerInfo_MenuDraw( void )
const char *s;
char key[MAX_INFO_KEY];
char value[MAX_INFO_VALUE];
- int y;
+ int i = 0, y;
y = SCREEN_HEIGHT/2 - s_serverinfo.numlines*(SMALLCHAR_HEIGHT)/2 - 20;
s = s_serverinfo.info;
- while ( s ) {
+ while ( s && i < s_serverinfo.numlines ) {
Info_NextPair( &s, key, value );
if ( !key[0] ) {
break;
@@ -144,6 +144,7 @@ static void ServerInfo_MenuDraw( void )
UI_DrawString(SCREEN_WIDTH*0.50 + 8,y,value,UI_LEFT|UI_SMALLFONT,text_color_normal);
y += SMALLCHAR_HEIGHT;
+ i++;
}
Menu_Draw( &s_serverinfo.menu );