X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameTick.cpp;h=273c7f6d64c5411d49125def785bfccf8cb2897a;hb=54cbb28b51da68b2280068a41e7964f78dec6858;hp=edc196e511fe5e456afc11188559afc23efade8c;hpb=1962783a8b73ff877a6bb2d30f4c6efa7547f811;p=lugaru.git diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index edc196e..273c7f6 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -1413,10 +1413,8 @@ void Game::Loadlevel(int which){ } void Game::Loadlevel(const char *name){ - static int oldlevel; int templength; float lamefloat; - int lameint; static const char *pfx = ":Data:Maps:"; char *buf; @@ -1448,8 +1446,6 @@ void Game::Loadlevel(const char *name){ tutorialmaxtime=1; } loadingstuff=1; - if(!firstload) - oldlevel=50; pause_sound(whooshsound); pause_sound(stream_firesound); @@ -1638,8 +1634,6 @@ void Game::Loadlevel(const char *name){ funpackf(tfile, "Bf", &dialogueboxcolor[k][l][2]); funpackf(tfile, "Bi", &dialogueboxsound[k][l]); - bool doneread; - funpackf(tfile, "Bi",&templength); if(templength>128||templength<=0) templength=128; @@ -1719,11 +1713,11 @@ void Game::Loadlevel(const char *name){ float maxdistance=0; float tempdist; - int whichclosest; + //~ int whichclosest; for(int i=0;imaxdistance){ - whichclosest=i; + //~ whichclosest=i; maxdistance=tempdist; } } @@ -1875,9 +1869,6 @@ void Game::Loadlevel(const char *name){ fclose(tfile); - oldlevel=whichlevel; - - if(numplayers>maxplayers-1) numplayers=maxplayers-1; for(int i=0;i