mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 08:49:18 +02:00
compilation warnings fixes
This commit is contained in:
17
World.cpp
17
World.cpp
@@ -288,17 +288,26 @@ bool TWorld::Init( GLFWwindow *Window ) {
|
||||
|
||||
UILayer.set_background( "logo" );
|
||||
|
||||
TSoundsManager::Init( glfwGetWin32Window( window ) );
|
||||
WriteLog("Sound Init OK");
|
||||
if( true == TSoundsManager::Init( glfwGetWin32Window( window ) ) ) {
|
||||
WriteLog( "Sound subsystem setup complete" );
|
||||
}
|
||||
else {
|
||||
ErrorLog( "Sound subsystem setup failed" );
|
||||
return false;
|
||||
}
|
||||
|
||||
glfwSetWindowTitle( window, ( Global::AppName + " (" + Global::SceneryFile + ")" ).c_str() ); // nazwa scenerii
|
||||
UILayer.set_progress(0.01);
|
||||
UILayer.set_progress( "Loading scenery / Wczytywanie scenerii" );
|
||||
GfxRenderer.Render();
|
||||
|
||||
WriteLog( "Ground init" );
|
||||
WriteLog( "World setup..." );
|
||||
if( true == Ground.Init( Global::SceneryFile ) ) {
|
||||
WriteLog( "Ground init OK" );
|
||||
WriteLog( "...world setup done" );
|
||||
}
|
||||
else {
|
||||
ErrorLog( "...world setup failed" );
|
||||
return false;
|
||||
}
|
||||
|
||||
simulation::Time.init();
|
||||
|
||||
Reference in New Issue
Block a user