mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 05:09:20 +02:00
Merge branch 'master' into feat/modern-editor
This commit is contained in:
@@ -498,7 +498,7 @@ int eu07_application::run()
|
||||
{
|
||||
command_queue::commands_map commands_to_exec;
|
||||
command_queue::commands_map local_commands = simulation::Commands.pop_intercept_queue();
|
||||
double slave_sync;
|
||||
double slave_sync{0.0};
|
||||
|
||||
// if we're the server
|
||||
if (m_network && m_network->servers)
|
||||
|
||||
@@ -690,7 +690,7 @@ void driver_mode::update_camera(double const Deltatime)
|
||||
// reset window state, it'll be set again if applicable in a check below
|
||||
Global.CabWindowOpen = false;
|
||||
|
||||
if (simulation::Train != nullptr && Camera.m_owner != nullptr && false == DebugCameraFlag)
|
||||
if (simulation::Train != nullptr && controlled != nullptr && Camera.m_owner != nullptr && false == DebugCameraFlag)
|
||||
{
|
||||
// jeśli jazda w kabinie, przeliczyć trzeba parametry kamery
|
||||
/*
|
||||
|
||||
@@ -213,7 +213,7 @@ void scenarioloader_ui::render_()
|
||||
const float spacing = 10.0f * scale; // odstęp między ikoną a tekstem
|
||||
|
||||
// Loading icon
|
||||
const deferred_image *img = &m_loading_wheel_frames[38];
|
||||
deferred_image *img = &m_loading_wheel_frames[38];
|
||||
const auto loading_tex = img->get();
|
||||
const auto loading_size = glm::vec2(img->size()) * glm::vec2(scale);
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ TTranscripts::Add( std::string const &txt, bool backgorund ) {
|
||||
cParser parser( asciitext );
|
||||
while( true == parser.getTokens( 3, false, "[]\n" ) ) {
|
||||
|
||||
float begin, end;
|
||||
float begin{ 0.f }, end{ 0.f };
|
||||
std::string transcript;
|
||||
parser
|
||||
>> begin
|
||||
|
||||
Reference in New Issue
Block a user