funpackf(tfile, "Bi", &(acc->progress));
int nbCampaigns;
funpackf(tfile, "Bi", &nbCampaigns);
- printf("loading %d campaign progress info\n",nbCampaigns);
+ //~ printf("loading %d campaign progress info\n",nbCampaigns);
for(int k=0;k<nbCampaigns;++k) {
string campaignName = "";
funpackf(tfile, "Bb", &c);
campaignName.append(1,c);
}
- printf("loading %s campaign progress info\n",campaignName.c_str());
+ //~ printf("loading %s campaign progress info\n",campaignName.c_str());
funpackf(tfile, "Bf", &(acc->campaignProgress[campaignName].time));
funpackf(tfile, "Bf", &(acc->campaignProgress[campaignName].score));
funpackf(tfile, "Bf", &(acc->campaignProgress[campaignName].fasttime));
LOGFUNC;
LOG(std::string("Loading level...") + name);
- cout << "Loading level..." << name << endl;
if(!gameon)
visibleloading=1;
int mapvers;
FILE *tfile;
- char* buff=getcwd(NULL,0);
- cout << buff << " " << FixedFN << endl;
- free(buff);
+ //~ char* buff=getcwd(NULL,0);
+ //~ cout << buff << " " << FixedFN << endl;
+ //~ free(buff);
tfile=fopen( FixedFN, "rb" );
if(tfile) {
- cout << "existe" << endl;
pause_sound(stream_firesound);
scoreadded=0;
windialogue=0;
emit_sound_np(consolesuccesssound);
freeze=0;
console=false;
- cout << "console contente" << endl;
}
if(!stealthloading){
if(!firstload)
firstload=1;
} else {
- perror("Soucis");
+ perror("Problem");
}
leveltime=0;
loadingstuff=0;
if(!firstload)
LoadStuff();
whichchoice=0;
- cout << "from " << campaignlevels[actuallevel].mapname.c_str() << "(" << actuallevel << ")" << endl;
actuallevel=campaignlevels[actuallevel].nextlevel.front();
- cout << "to " << campaignlevels[actuallevel].mapname.c_str() << "(" << actuallevel << ")" << endl;
visibleloading=1;
stillloading=1;
Loadlevel(campaignlevels[actuallevel].mapname.c_str());