From 11796bae859bbb5c78fd70afdc4ab7c6bf50a725 Mon Sep 17 00:00:00 2001 From: flowtron Date: Thu, 10 Jun 2010 19:57:31 +0000 Subject: [PATCH] typo fixes git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5166 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/servercmdline.txt | 2 +- source/src/scoreboard.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/servercmdline.txt b/config/servercmdline.txt index ddfe0dcb..a556dbd2 100644 --- a/config/servercmdline.txt +++ b/config/servercmdline.txt @@ -80,7 +80,7 @@ // 5 do not write to the log // -A // Restricts voting for a map/mode to admins. This switch can be used several times. -// don't use this switches, unless you really know what you're doing: +// don't use these switches, unless you really know what you're doing: // -u // uprate // -i // ip, only for machines with multiple network interfaces diff --git a/source/src/scoreboard.cpp b/source/src/scoreboard.cpp index e9e4299c..4412854f 100644 --- a/source/src/scoreboard.cpp +++ b/source/src/scoreboard.cpp @@ -174,8 +174,8 @@ void renderteamscore(teamscore *t) const char *sr = scoreratio(t->frags, t->deaths, 1); //float ratio = (float)(t->frags >= 0 ? t->frags : 0) / (float)(t->deaths > 0 ? t->deaths : 1); - if(m_flags) formatstring(line.s)("\t\t%d\t%d\t%d\t%.1f\t%d\t\t%s\t%s", t->flagscore, t->frags, t->deaths, ratio, t->points, team_string(t->team), plrs); - else formatstring(line.s)("\t\t%d\t%d\t%.1f\t%d\t\t%s\t%s", t->frags, t->deaths, ratio, t->points, team_string(t->team), plrs); + if(m_flags) formatstring(line.s)("\t\t%d\t%d\t%d\t%s\t%d\t\t%s\t%s", t->flagscore, t->frags, t->deaths, sr, t->points, team_string(t->team), plrs); + else formatstring(line.s)("\t\t%d\t%d\t%s\t%d\t\t%s\t%s", t->frags, t->deaths, sr, t->points, team_string(t->team), plrs); static color teamcolors[2] = { color(1.0f, 0, 0, 0.2f), color(0, 0, 1.0f, 0.2f) }; line.bgcolor = &teamcolors[team_base(t->team)];