#303: Typo fixes from mathnerd314
[supertux.git] / src / statistics.cpp
index 6531290..8f958bc 100644 (file)
@@ -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<int>(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;