16
0
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:
tmj-fstate
2017-08-06 17:14:20 +02:00
parent 7e5b2d09cb
commit bc22d582de
12 changed files with 82 additions and 83 deletions

View File

@@ -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();