diff --git a/application/editormodeselftest.cpp b/application/editormodeselftest.cpp index bf281bf1..a731d2d0 100644 --- a/application/editormodeselftest.cpp +++ b/application/editormodeselftest.cpp @@ -16,6 +16,7 @@ http://mozilla.org/MPL/2.0/. #include "application/editorprojection.h" #include "simulation/simulation.h" +#include "simulation/simulationtime.h" #include "scene/scenelayers.h" #include "utilities/Globals.h" #include "utilities/Logs.h" @@ -382,6 +383,11 @@ void editor_mode::selftest_step() WriteLog(format("SELFTEST drivetilt %s: angles %.3f %.3f %.3f, +x rises %.4f (cone %.4f), +z rises %.4f (grade %.4f), origin %.3f %.3f %.3f, points %.3f", name.c_str(), model->Angles().x, model->Angles().y, model->Angles().z, across.y, cone, forward.y, grade, model->location().x, model->location().y, model->location().z, path.points[segment_data::point::start].y)); } + else if (command == "weather") + { + auto const &time{simulation::Time.data()}; + WriteLog(format("SELFTEST weather: %02d:%02d, fog end %.0f m, overcast %.2f", time.wHour, time.wMinute, Global.fFogEnd, Global.Overcast)); + } else if (command == "fouling") { std::map values; diff --git a/launcher/scenery_wizard.cpp b/launcher/scenery_wizard.cpp index e4c30138..19a2d07f 100644 --- a/launcher/scenery_wizard.cpp +++ b/launcher/scenery_wizard.cpp @@ -370,7 +370,8 @@ bool ui::scenerywizard_panel::create_scenery() if (m_title[0] != '\0') output << "// " << m_title << "\r\n"; output << "// created in the editor " << date << "\r\n\r\n"; - output << "atmo 0.423 0.702 1.0 1700 2000 0.70 0.80 0.9 endatmo\r\n\r\n"; + output << "atmo 0.423 0.702 1.0 25000 25000 0.70 0.80 0.9 0 endatmo\r\n"; + output << "time 12:00 5:00 20:00 endtime\r\n\r\n"; output << "FirstInit\r\n"; output.close(); WriteLog("Scenery wizard: created " + file + " at " + reference);