scoreboard toggle changes

This commit is contained in:
Bryce Hutchings 2002-03-24 22:51:30 +00:00
parent 86b3b1b31b
commit 19aa6693d3
1 changed files with 24 additions and 10 deletions

View File

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.36 2002/03/24 22:51:30 niceass
// scoreboard toggle changes
//
// Revision 1.35 2002/03/19 06:00:14 niceass
// tab scoreboard quicky change to q2 way
//
@ -243,7 +246,7 @@ static void CG_PlayerOrigin_f (void) {
(int)cg.snap->ps.origin[1], (int)cg.snap->ps.origin[2]);
}
/*
static void CG_ScoresDown_f( void ) {
#ifdef MISSIONPACK
@ -256,6 +259,7 @@ static void CG_ScoresDown_f( void ) {
cg.scoreTPMode = 0;
if ( !cg.showScores ) cg.scoreStartTime = cg.time;
if ( cg.scoresRequestTime + 2000 < cg.time ) {
// the scores are more than two seconds out of data,
// so request new ones
@ -274,9 +278,11 @@ static void CG_ScoresDown_f( void ) {
cg.showScores = qtrue;
}
}
*/
static void CG_Scores_f ( void ) {
if ( cgs.gametype >= GT_TEAM ) {
if ( cg.showScores && cg.scoreTPMode == 1 ) {
cg.showScores = qfalse;
cg.scoreFadeTime = 0; //cg.time;
@ -288,6 +294,14 @@ static void CG_Scores_f ( void ) {
cg.scoreTPMode = 1;
return;
}
}
else {
if ( cg.showScores ) {
cg.showScores = qfalse;
cg.scoreFadeTime = 0; //cg.time;
return;
}
}
if ( cg.scoresRequestTime + 2000 < cg.time ) {
// the scores are more than two seconds out of data,