From: LMH Date: Wed, 13 Feb 2013 20:04:33 +0000 (-1000) Subject: Show 'Badguys killed' in the level intro stats; bug 951 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=924aab98f33d8f91f258538e70e964eec1b0a509;p=supertux.git Show 'Badguys killed' in the level intro stats; bug 951 --- 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;