]> git.jsancho.org Git - lugaru.git/commitdiff
fixed some unwanted debug output
authorCôme BERNIGAUD <come.bernigaud@gmail.com>
Wed, 18 May 2011 18:30:03 +0000 (20:30 +0200)
committerCôme BERNIGAUD <come.bernigaud@gmail.com>
Wed, 18 May 2011 18:30:03 +0000 (20:30 +0200)
Source/Account.cpp
Source/GameTick.cpp

index 7eba58815332e28c4edda56ca0be8fd99c7a7c87..354713570c9ea43522b8cca03ca3fa403302b6e0 100644 (file)
@@ -122,7 +122,7 @@ Account* Account::loadFile(string filename) {
                        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 = "";
@@ -134,7 +134,7 @@ Account* Account::loadFile(string filename) {
                                        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));
index 56e9a8ef9170afcfdf220294cd93b7c695977648..bad9674fb81c63be55af796b50a4af93c6d50bc6 100644 (file)
@@ -1425,7 +1425,6 @@ void Game::Loadlevel(const char *name) {
        LOGFUNC;
 
        LOG(std::string("Loading level...") + name);
-       cout << "Loading level..." << name << endl;
 
        if(!gameon)
         visibleloading=1;
@@ -1459,12 +1458,11 @@ void Game::Loadlevel(const char *name) {
 
        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;
@@ -1532,7 +1530,6 @@ void Game::Loadlevel(const char *name) {
                        emit_sound_np(consolesuccesssound);
                        freeze=0;
                        console=false;
-                       cout << "console contente" << endl;
                }
 
                if(!stealthloading){
@@ -2093,7 +2090,7 @@ void Game::Loadlevel(const char *name) {
                if(!firstload)
                        firstload=1;
        } else {
-               perror("Soucis");
+               perror("Problem");
        }
        leveltime=0;
        loadingstuff=0;
@@ -7758,9 +7755,7 @@ void Game::TickOnceAfter(){
                                        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());