X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameDraw.cpp;h=dd74893d7a9e80aa6b0b1f43e3247113f7eb3f02;hb=710fa624080c2f2db7923832e2fd9945f4dd8254;hp=e8a999857b7a1982040876052fe660e2d81dc16d;hpb=200ab5f2ab9164e213f738acbac2b5bbc74bcaf4;p=lugaru.git diff --git a/Source/GameDraw.cpp b/Source/GameDraw.cpp index e8a9998..dd74893 100644 --- a/Source/GameDraw.cpp +++ b/Source/GameDraw.cpp @@ -2021,6 +2021,14 @@ vector Game::ListCampaigns() { void Game::LoadCampaign() { if(!accountactive) return; + if(!Mainmenuitems[7]) { + ifstream test(ConvertFileName((":Data:Textures:"+accountactive->getCurrentCampaign()+":World.png").c_str())); + if(test.good()) { + LoadTexture((":Data:Textures:"+accountactive->getCurrentCampaign()+":World.png").c_str(),&Mainmenuitems[7],0,0); + } else { + LoadTexture(":Data:Textures:World.png",&Mainmenuitems[7],0,0); + } + } ifstream ipstream(ConvertFileName((":Data:Campaigns:"+accountactive->getCurrentCampaign()+".txt").c_str())); ipstream.ignore(256,':'); ipstream >> campaignnumlevels;