]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameTick.cpp
Adding the temple campaign so we can test multiple campaigns features.
[lugaru.git] / Source / GameTick.cpp
index df85211eacfffc298c29c599170ed9201a5a6ff0..58baac80451814c9bc9fd1f2340febe891a10f97 100644 (file)
@@ -5740,6 +5740,14 @@ void Game::MenuTick(){
                                                        accountactive->setCurrentCampaign(*c);
                                                }
                                                LoadCampaign();
+                                               if(Mainmenuitems[7])
+                                                       glDeleteTextures(1,&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);
+                                               }
                                                break;
                                }
                                break;