From e948d6a2310979402b6fbce344e5ae9746c1c5ff Mon Sep 17 00:00:00 2001 From: IronClawTrem Date: Tue, 3 Mar 2020 15:56:56 +0000 Subject: remove unnecessary args in !showff --- src/game/g_admin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/game/g_admin.c') 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)); -- cgit