Skip to content

Commit

Permalink
Show 'Badguys killed' in the level intro stats; bug 951
Browse files Browse the repository at this point in the history
  • Loading branch information
LMH0013 committed Feb 13, 2013
1 parent 4889a6a commit 924aab9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/supertux/levelintro.cpp
Expand Up @@ -116,6 +116,13 @@ LevelIntro::draw(DrawingContext& context)
context.draw_center_text(Resources::normal_font, ss.str(), Vector(0, py), LAYER_FOREGROUND1, LevelIntro::stat_color);
py += static_cast<int>(Resources::normal_font->get_height());
}

{
std::stringstream ss;
ss << _("Badguys killed") << ": " << Statistics::frags_to_string((best_level_statistics && (best_level_statistics->coins >= 0)) ? best_level_statistics->badguys : 0, stats.total_badguys);
context.draw_center_text(Resources::normal_font, ss.str(), Vector(0, py), LAYER_FOREGROUND1,LevelIntro::stat_color);
py += static_cast<int>(Resources::normal_font->get_height());
}

{
std::stringstream ss;
Expand Down

0 comments on commit 924aab9

Please sign in to comment.