X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameInitDispose.cpp;h=9fb279bc52fb248185e73c9ff75ba664f9960c7b;hb=decb00e82a2e65e25dbcdd8f16fff5a6a07d31d6;hp=9594b87e1054d25fe1f7e34427fa724a8d01493b;hpb=7d09e4f50b0500522e2eb1d25564aaf7626a0094;p=lugaru.git diff --git a/Source/GameInitDispose.cpp b/Source/GameInitDispose.cpp index 9594b87..9fb279b 100644 --- a/Source/GameInitDispose.cpp +++ b/Source/GameInitDispose.cpp @@ -138,7 +138,7 @@ void Game::Dispose() } - sprintf (ConvertFileName(mapname), ":Data:Users"); + sprintf (mapname, ":Data:Users"); FILE *tfile; tfile=fopen( ConvertFileName(mapname), "wb" ); @@ -996,25 +996,12 @@ void Game::InitGame() numchallengelevels=14; - /*char tempstring[256]; - sprintf (tempstring, "%s", registrationname); - long num1; - long num2; - long num3; - long num4; - long long longnum; - longnum = MD5_string ( tempstring); - //longnum = 1111111111111111; - num1 = longnum/100000000; - num2 = longnum%100000000; - sprintf (tempstring, "%d-%d-%d-%d", num1/10000, num1%10000, num2/10000, num2%10000); - */ FILE *tfile; accountactive=-1; - sprintf (ConvertFileName(mapname), ":Data:Users"); + sprintf (mapname, ":Data:Users"); tfile=fopen( ConvertFileName(mapname), "rb" ); if(tfile) { @@ -1321,25 +1308,6 @@ void Game::InitGame() newdetail=detail; newscreenwidth=screenwidth; newscreenheight=screenheight; - - - - /* - float gLoc[3]={0,0,0}; - float vel[3]={0,0,0}; - OPENAL_Sample_SetMinMaxDistance(samp[firestartsound], 9999.0f, 99999.0f); - PlaySoundEx( firestartsound, samp[firestartsound], NULL, true); - OPENAL_3D_SetAttributes(channels[firestartsound], gLoc, vel); - OPENAL_SetVolume(channels[firestartsound], 256); - OPENAL_SetPaused(channels[firestartsound], false); - OPENAL_Sample_SetMinMaxDistance(samp[firestartsound], 8.0f, 2000.0f); - - flashr=1; - flashg=0; - flashb=0; - flashamount=1; - flashdelay=1; - */ }