summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIronClawTrem <louie.nutman@gmail.com>2020-03-03 15:56:56 +0000
committerIronClawTrem <louie.nutman@gmail.com>2020-03-03 15:56:56 +0000
commite948d6a2310979402b6fbce344e5ae9746c1c5ff (patch)
tree109fd289a5cb9d892cbfd483086eaab6fce884bf
parent14027880b4b7156dca2400f7cc56bf27b82fc293 (diff)
remove unnecessary args in !showff
-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));