mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 01:39:20 +02:00
feat(launcher): new scenery made by the wizard starts at noon with no fog and no clouds
This commit is contained in:
@@ -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<std::string, std::string> values;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user