X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameInitDispose.cpp;h=d6173f51acdb64e1e59bfe23a5d7484647df07f4;hb=b32cd80b243d77cd80e026c7ae73e33ec39b1de9;hp=5e6ce040c9d95e197e7cd79186f10398e8b18105;hpb=a3775aa01cd00672b37785365675f6842b9db2dc;p=lugaru.git diff --git a/Source/GameInitDispose.cpp b/Source/GameInitDispose.cpp index 5e6ce04..d6173f5 100644 --- a/Source/GameInitDispose.cpp +++ b/Source/GameInitDispose.cpp @@ -174,6 +174,10 @@ GLvoid Game::ReSizeGLScene(float fov, float pnear) void Game::LoadingScreen() { + if (!visibleloading) { + return; + } + static float loadprogress; static AbsoluteTime frametime = {0, 0}; AbsoluteTime currTime = UpTime (); @@ -652,9 +656,9 @@ void Game::LoadStuff() stillloading = 1; - visibleloading = 0; //don't use loadscreentexture yet + visibleloading = false; //don't use loadscreentexture yet loadscreentexture.load("Textures/Fire.jpg", 1); - visibleloading = 1; + visibleloading = true; temptexdetail = texdetail; texdetail = 1; @@ -872,6 +876,6 @@ void Game::LoadStuff() loading = 0; changedelay = 1; - visibleloading = 0; + visibleloading = false; }