X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fstatistics.cpp;h=285a3575bc72998ba0c0dd07efd8aec9dd48bdfc;hb=5667d7e94d85f968ab914bc457edd689fc907253;hp=eddd71db0aa256d3b0d1d8b77ca44bd841342e0a;hpb=88044088f138f9f6bdaaaf873f114f34f053c864;p=supertux.git diff --git a/src/statistics.cpp b/src/statistics.cpp index eddd71db0..285a3575b 100644 --- a/src/statistics.cpp +++ b/src/statistics.cpp @@ -75,13 +75,13 @@ Statistics::parse(const lisp::Lisp& reader) void Statistics::write(lisp::Writer& writer) { - writer.write_int("coins-collected", coins); - writer.write_int("coins-collected-total", total_coins); - writer.write_int("badguys-killed", badguys); - writer.write_int("badguys-killed-total", total_badguys); - writer.write_float("time-needed", time); - writer.write_int("secrets-found", secrets); - writer.write_int("secrets-found-total", total_secrets); + writer.write("coins-collected", coins); + writer.write("coins-collected-total", total_coins); + writer.write("badguys-killed", badguys); + writer.write("badguys-killed-total", total_badguys); + writer.write("time-needed", time); + writer.write("secrets-found", secrets); + writer.write("secrets-found-total", total_secrets); } */ @@ -159,7 +159,7 @@ Statistics::draw_worldmap_info(DrawingContext& context) } context.draw_text(small_font, caption_buf, Vector(WMAP_INFO_LEFT_X, posy), ALIGN_LEFT, LAYER_GUI, Statistics::header_color); - context.draw_text(small_font, stat_buf, Vector(WMAP_INFO_RIGHT_X, posy), ALIGN_RIGHT, LAYER_GUI, Statistics::text_color); + context.draw_text(small_font, stat_buf, Vector(WMAP_INFO_RIGHT_X, posy), ALIGN_RIGHT, LAYER_GUI, Statistics::header_color); posy += small_font->get_height() + 2; }