X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;ds=inline;f=Source%2FGameTick.cpp;h=b1f3ecc93e9496b582877b3b2a37a4c2fe81fc79;hb=710fa624080c2f2db7923832e2fd9945f4dd8254;hp=df85211eacfffc298c29c599170ed9201a5a6ff0;hpb=603ed8508ee19d1bd831c8914f171759580a6931;p=lugaru.git diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index df85211..b1f3ecc 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -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; }