Commit f92b3006 authored by MCMic's avatar MCMic 🎮 Committed by Neal Gompa (ニール・ゴンパ)

Setting float precision to 7 digits in JSON output

parent df28f346
Pipeline #18849086 passed with stage
in 14 minutes and 34 seconds
......@@ -261,6 +261,7 @@ void ch_save_json(const char* args)
Json::StreamWriterBuilder builder;
// default is "All", this allows to print arrays as one line
builder.settings_["commentStyle"] = "None";
builder.settings_["precision"] = 7;
map_file << Json::writeString(builder, map_data);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment