]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameTick.cpp
removing a debug cout
[lugaru.git] / Source / GameTick.cpp
index df85211eacfffc298c29c599170ed9201a5a6ff0..b1f3ecc93e9496b582877b3b2a37a4c2fe81fc79 100644 (file)
@@ -1408,7 +1408,7 @@ void Game::Loadlevel(int which){
            Loadlevel("tutorial");
        }else if(which >= 0 && which <= 15){
            char buf[32];
-           snprintf(buf, 32, "map%d", which + 1);
+           snprintf(buf, 32, "map%d", which + 1); // challenges
            Loadlevel(buf);
        }else
            Loadlevel("mapsave");
@@ -5739,6 +5739,9 @@ void Game::MenuTick(){
                                                                c=campaigns.begin();
                                                        accountactive->setCurrentCampaign(*c);
                                                }
+                                               if(Mainmenuitems[7])
+                                                       glDeleteTextures(1,&Mainmenuitems[7]); // we delete the world texture so load campaign will reload it
+                                               Mainmenuitems[7] = 0;
                                                LoadCampaign();
                                                break;
                                }