Index: code/q3_ui/ui_connect.c =================================================================== --- code/q3_ui/ui_connect.c (revision 1187) +++ code/q3_ui/ui_connect.c (working copy) @@ -94,7 +94,8 @@ UI_DrawProportionalString( 8, 224, xferText, style, color_white ); if (downloadSize > 0) { - s = va( "%s (%d%%)", downloadName, downloadCount * 100 / downloadSize ); + s = va( "%s (%d%%)", downloadName, + (int)( (double)downloadCount * 100 / downloadSize ) ); } else { s = downloadName; } Index: code/game/g_cmds.c =================================================================== --- code/game/g_cmds.c (revision 1187) +++ code/game/g_cmds.c (working copy) @@ -547,17 +547,17 @@ if ( g_teamForceBalance.integer ) { int counts[TEAM_NUM_TEAMS]; - counts[TEAM_BLUE] = TeamCount( ent->client->ps.clientNum, TEAM_BLUE ); - counts[TEAM_RED] = TeamCount( ent->client->ps.clientNum, TEAM_RED ); + counts[TEAM_BLUE] = TeamCount( clientNum, TEAM_BLUE ); + counts[TEAM_RED] = TeamCount( clientNum, TEAM_RED ); // We allow a spread of two if ( team == TEAM_RED && counts[TEAM_RED] - counts[TEAM_BLUE] > 1 ) { - trap_SendServerCommand( ent->client->ps.clientNum, + trap_SendServerCommand( clientNum, "cp \"Red team has too many players.\n\"" ); return; // ignore the request } if ( team == TEAM_BLUE && counts[TEAM_BLUE] - counts[TEAM_RED] > 1 ) { - trap_SendServerCommand( ent->client->ps.clientNum, + trap_SendServerCommand( clientNum, "cp \"Blue team has too many players.\n\"" ); return; // ignore the request } Index: code/ui/ui_main.c =================================================================== --- code/ui/ui_main.c (revision 1187) +++ code/ui/ui_main.c (working copy) @@ -5424,7 +5424,8 @@ Text_PaintCenter(centerPoint, yStart + 248, scale, colorWhite, xferText, 0); if (downloadSize > 0) { - s = va( "%s (%d%%)", downloadName, downloadCount * 100 / downloadSize ); + s = va( "%s (%d%%)", downloadName, + (int)( (double)downloadCount * 100 / downloadSize ) ); } else { s = downloadName; }