X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flisp%2Fwriter.cpp;h=d2c7b1c5eef23a66aaa4e281b83a1b9a374e2a6d;hb=904852246d59d4988c3e85290dd4601713e42db5;hp=13e6459b5651ed81666a51996f0206963b595eb9;hpb=e6a940db5904743e8220491ce10b5107e119a44c;p=supertux.git diff --git a/src/lisp/writer.cpp b/src/lisp/writer.cpp index 13e6459b5..d2c7b1c5e 100644 --- a/src/lisp/writer.cpp +++ b/src/lisp/writer.cpp @@ -1,7 +1,7 @@ // $Id$ // -// SuperTux - A Jump'n Run -// Copyright (C) 2004 Matthias Braun // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -33,13 +33,15 @@ Writer::Writer(const std::string& filename) out = new OFileStream(filename); out_owned = true; indent_depth = 0; + out->precision(10); } - + Writer::Writer(std::ostream* newout) { out = newout; out_owned = false; indent_depth = 0; + out->precision(10); } Writer::~Writer() @@ -84,7 +86,7 @@ Writer::end_list(const std::string& listname) return; } lists.pop_back(); - + indent_depth -= 2; indent(); *out << ")\n";