summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/g_admin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index db8b3b4..9e93377 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -7866,7 +7866,7 @@ static int calc_ff_pct(statsCounters_t *sc) {
else
return 100;
} else {
- return round((float)sc->ffdmgdone / (sc->ffdmgdone + sc->dmgdone + sc->structdmgdone) * 100);
+ return ffpercentage((float)sc->ffdmgdone / (sc->ffdmgdone + sc->dmgdone + sc->structdmgdone) * 100);
}
}
@@ -7893,11 +7893,11 @@ qboolean G_admin_showff(gentity_t *ent, int skiparg)
continue;
if (client->pers.teamSelection == PTE_HUMANS)
- Com_sprintf( team, sizeof( team ), "^4H", team);
+ Com_sprintf( team, sizeof( team ), "^4H" );
else if (client->pers.teamSelection == PTE_ALIENS)
- Com_sprintf( team, sizeof( team ), "^1A", team);
+ Com_sprintf( team, sizeof( team ), "^1A" );
else
- Com_sprintf( team, sizeof( team ), "^3S", team);
+ Com_sprintf( team, sizeof( team ), "^3S" );
ffpct = calc_ff_pct(&client->pers.statscounters);
ADMBP(va("%2d %s ^1%3d%% ^7%s^7\n", i, team, ffpct, client->pers.netname));