--- src/bzflag/HUDRenderer.cxx.orig 2005-03-09 10:39:37.000000000 -0500 +++ src/bzflag/HUDRenderer.cxx 2005-03-09 10:47:11.000000000 -0500 @@ -1549,6 +1549,8 @@ void HUDRenderer::drawPlayerScore(const Player* player, float x1, float x2, float x3, float xs, float y) { + float tkwarnratio = BZDB.eval("tkwarnratio"); + // score char score[40], kills[40]; if (World::getWorld()->allowRabbit()) @@ -1595,13 +1597,21 @@ // team color playerInfo += ColorStrings[teamIndex]; //Slot number only for admins - LocalPlayer* localPlayer = LocalPlayer::getMyTank(); - if (localPlayer->isAdmin()){ +// LocalPlayer* localPlayer = LocalPlayer::getMyTank(); +// if (localPlayer->isAdmin()){ char slot[10]; sprintf(slot, "%3d",player->getId()); playerInfo += slot; playerInfo += " - "; - } +// } + if ( tkwarnratio > 0.0 ) { + if ( ((player->getWins()>0) && (player->getTeamKills()>1)) + || ((player->getWins()==0) && (player->getTeamKills()>=3)) ) { + if ( ((float)player->getTeamKills()/(float)player->getWins()) > tkwarnratio ) { + playerInfo += ColorStrings[CyanColor]; + } + } + } // callsign playerInfo += player->getCallSign(); // email in parenthesis