From 924aab98f33d8f91f258538e70e964eec1b0a509 Mon Sep 17 00:00:00 2001 From: LMH Date: Wed, 13 Feb 2013 10:04:33 -1000 Subject: [PATCH] Show 'Badguys killed' in the level intro stats; bug 951 --- src/supertux/levelintro.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/supertux/levelintro.cpp b/src/supertux/levelintro.cpp index bbd3f215f..98d854452 100644 --- a/src/supertux/levelintro.cpp +++ b/src/supertux/levelintro.cpp @@ -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(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(Resources::normal_font->get_height()); + } { std::stringstream ss; -- 2.11.0