X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fstatistics.cpp;h=8f958bcfe892f2a61e3e28d43aa9899b6a67b4e4;hb=08ccb17345a52f5ffd8a5dd6ecf675cad55f16a7;hp=653129044d2af73f0d990c476669966543d0670d;hpb=348f8866125acfe70623c73e537a125508c8683c;p=supertux.git diff --git a/src/statistics.cpp b/src/statistics.cpp index 653129044..8f958bcfe 100644 --- a/src/statistics.cpp +++ b/src/statistics.cpp @@ -245,7 +245,6 @@ Statistics::draw_endseq_panel(DrawingContext& context, Statistics* best_stats, S context.draw_surface(backdrop, Vector(bd_x, bd_y), LAYER_GUI); context.pop_transform(); - char buf[129]; context.draw_text(white_text, _("You"), Vector(col2_x, row1_y), ALIGN_LEFT, LAYER_GUI); context.draw_text(white_text, _("Best"), Vector(col3_x, row1_y), ALIGN_LEFT, LAYER_GUI); @@ -336,7 +335,7 @@ Statistics::time_to_string(float time) const { int time_csecs = std::min(static_cast(time * 100), 99 * 6000 + 9999); int mins = (time_csecs / 6000); int secs = (time_csecs % 6000) / 100; - int cscs = (time_csecs & 6000) % 100; + int cscs = (time_csecs % 6000) % 100; std::ostringstream os; os << std::setw(2) << std::setfill('0') << mins << ":" << std::setw(2) << std::setfill('0') << secs << "." << std::setw(2) << std::setfill('0') << cscs;